本文整理了Java中javax.swing.JDialog.setComponentOrientation()
方法的一些代码示例,展示了JDialog.setComponentOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.setComponentOrientation()
方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:setComponentOrientation
暂无
代码示例来源:origin: EvoSuite/evosuite
protected JDialog createDialog(Component parent) throws HeadlessException {
FileChooserUI ui = getUI();
String title = ui.getDialogTitle(this);
putClientProperty(AccessibleContext.ACCESSIBLE_DESCRIPTION_PROPERTY,
title);
JDialog dialog;
Window window = getWindowForComponent(parent);
if (window instanceof Frame) {
dialog = new JDialog((Frame)window, title, true);
} else {
dialog = new JDialog((Dialog)window, title, true);
}
dialog.setComponentOrientation(this.getComponentOrientation());
Container contentPane = dialog.getContentPane();
contentPane.setLayout(new BorderLayout());
contentPane.add(this, BorderLayout.CENTER);
if (JDialog.isDefaultLookAndFeelDecorated()) {
boolean supportsWindowDecorations =
UIManager.getLookAndFeel().getSupportsWindowDecorations();
if (supportsWindowDecorations) {
dialog.getRootPane().setWindowDecorationStyle(JRootPane.FILE_CHOOSER_DIALOG);
}
}
dialog.getRootPane().setDefaultButton(ui.getDefaultButton(this));
dialog.pack();
dialog.setLocationRelativeTo(parent);
return dialog;
}
代码示例来源:origin: com.googlecode.vfsjfilechooser2/vfsjfilechooser2
dialog.setComponentOrientation(this.getComponentOrientation());
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
dialog = new JDialog((Dialog) window, title, true);
dialog.setComponentOrientation(chooser.getComponent().getComponentOrientation());
代码示例来源:origin: com.jidesoft/jide-oss
private void initDialog(final JDialog dialog, int style, Component parentComponent) {
dialog.setComponentOrientation(this.getComponentOrientation());
Container contentPane = dialog.getContentPane();
代码示例来源:origin: net.anwiba.commons/anwiba-commons-swing-core
dialog = new JDialog((Dialog) window, title, true);
dialog.setComponentOrientation(getComponentOrientation());
final Container contentPane = dialog.getContentPane();
contentPane.setLayout(new BorderLayout());
内容来源于网络,如有侵权,请联系作者删除!