javax.swing.JDialog.setComponentOrientation()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中javax.swing.JDialog.setComponentOrientation()方法的一些代码示例,展示了JDialog.setComponentOrientation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JDialog.setComponentOrientation()方法的具体详情如下:
包路径:javax.swing.JDialog
类名称:JDialog
方法名:setComponentOrientation

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());

相关文章

JDialog类方法