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

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

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

JMenu.setComponentOrientation介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

m.add("Menu item #3 in " + title);
if (title.equals("About")) {
  m.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

代码示例来源:origin: edu.toronto.cs.medsavant/medsavant-client

@Override
  public void setComponentOrientation(ComponentOrientation o) {
    super.setComponentOrientation(o);
    if(popupMenu != null) {
      popupMenu.setComponentOrientation(o);
    }
  }
}

代码示例来源:origin: stackoverflow.com

m.add("Menu item #3 in " + title);
if (title.equals("About")) {
  m.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

代码示例来源:origin: stackoverflow.com

m.add("Menu item #3 in " + title);
if (title.equals("About")) {
  m.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

代码示例来源:origin: stackoverflow.com

jMenu1.setMinimumSize(new Dimension(200, 20));
jMenu1.setMaximumSize(new Dimension(200, 20));
jMenu1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
JMenu jMenu2 = new JMenu("Menu2");
jMenu2.setMinimumSize(new Dimension(200, 20));

代码示例来源:origin: stackoverflow.com

m.add("Menu item #3 in " + title);
if (title.equals("About")) {
  m.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

代码示例来源:origin: stackoverflow.com

m.add("Menu item #3 in " + title);
if (title.equals("About")) {
  m.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

代码示例来源:origin: net.sf.tinylaf/tinylaf

private JMenu createRightToLeftMenu() {
  JMenu menu = new JMenu("Right-to-left Menu");
  menu.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
  menu.setMnemonic(KeyEvent.VK_R);
  menu.setIcon(TinyLookAndFeel.loadIcon("cp_icons/smileyIcon.png"));
  sub2.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
  sub2.setEnabled(false);
  menu.add(sub2);
  sub3.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
  item = new JMenuItem("Item 1");
  item.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

相关文章