Examples of applyComponentOrientation()


Examples of javax.swing.JPanel.applyComponentOrientation()

        currententrypanel = null;
       
        JPanel titlepanel = new JPanel();
        titlepanel.setLayout(new java.awt.BorderLayout());
        titlepanel.add(title, java.awt.BorderLayout.CENTER);    
        titlepanel.applyComponentOrientation(getComponentOrientation());
       
        menucontainer.add(titlepanel);
    }
   
    public void addEntry(Component entry) {
View Full Code Here

Examples of javax.swing.JPanel.applyComponentOrientation()

    builder.add(muxallaudiotracks, FormLayoutUtil.flip(cc.xy(2, 5), colSpec, orientation));

    JPanel panel = builder.getPanel();

    // Apply the orientation to the panel and all components in it
    panel.applyComponentOrientation(orientation);

    return panel;
  }

  @Override
View Full Code Here

Examples of javax.swing.JPanel.applyComponentOrientation()

    });

    JPanel panel = builder.getPanel();

    // Apply the orientation to the panel and all components in it
    panel.applyComponentOrientation(orientation);

    return panel;
  }

  @Override
View Full Code Here

Examples of javax.swing.JPanel.applyComponentOrientation()

    builder.add(pPlugins, FormLayoutUtil.flip(cc.xyw(1, 45, 9), colSpec, orientation));

    JPanel panel = builder.getPanel();

    // Apply the orientation to the panel and all components in it
    panel.applyComponentOrientation(orientation);
   
    JScrollPane scrollPane = new JScrollPane(
      panel,
      JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
      JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
View Full Code Here

Examples of javax.swing.JPopupMenu.applyComponentOrientation()

            menu.addSeparator();
            menu.add(appli.getCutAction());
            menu.add(appli.getCopyAction());
            menu.add(appli.getPasteAction());
        }
        menu.applyComponentOrientation(lang.getComponentOrientation());
        Point popupPoint = getPopupMenuPoint(e);
        menu.show(this, popupPoint.x, popupPoint.y);
    }

    /** Function called when the language is changed */
 
View Full Code Here

Examples of javax.swing.JPopupMenu.applyComponentOrientation()

                menu.addSeparator();
            } else {
                menu.add(next);
            }
        }
        menu.applyComponentOrientation(getLanguage().getComponentOrientation());
        menu.show(invoker, x, y);
    }

    public void showDialog(Component content, Action[] buttonActions) {
      showDialog(content, buttonActions, "");
View Full Code Here

Examples of javax.swing.JPopupMenu.applyComponentOrientation()

            return;
        }
        JPopupMenu menu = new JPopupMenu();
        menu.setUI(null);
        basicPopupUI.popupMenu = menu;
        menu.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
        basicPopupUI.installKeyboardActions();
        assertEquals(0, menu.getInputMap().keys().length);
        assertNotNull(menu.getInputMap().getParent());
        assertEquals(11, menu.getInputMap().getParent().keys().length);
        assertNull(menu.getInputMap().getParent().getParent());
View Full Code Here

Examples of javax.swing.JPopupMenu.applyComponentOrientation()

        assertNotNull(menu.getInputMap().getParent());
        assertEquals(11, menu.getInputMap().getParent().keys().length);
        assertNull(menu.getInputMap().getParent().getParent());
        basicPopupUI.uninstallKeyboardActions();
        assertEquals(0, menu.getInputMap().allKeys().length);
        menu.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        basicPopupUI.installKeyboardActions();
        assertEquals(0, menu.getInputMap().keys().length);
        assertNotNull(menu.getInputMap().getParent());
        assertEquals(4, menu.getInputMap().getParent().keys().length);
        assertNotNull(menu.getInputMap().getParent().getParent());
View Full Code Here

Examples of javax.swing.JPopupMenu.applyComponentOrientation()

        public void actionPerformed(ActionEvent e) {
          disableRule(span.rule.getId());
        }
      });
      popup.add(ignoreItem);
      popup.applyComponentOrientation(
        ComponentOrientation.getOrientation(Locale.getDefault()));
    }

    List<Rule> disabledRules = getDisabledRules();
    if (!disabledRules.isEmpty()) {
View Full Code Here

Examples of org.netbeans.validation.api.ui.ValidationPanel.applyComponentOrientation()

      //This is all we do to validate the URL:
      group.add(f, Validators.REQUIRE_NON_EMPTY_STRING,
              Validators.NO_WHITESPACE,
              Validators.URL_MUST_BE_VALID);
      panel.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
      //Convenience method to show a simple dialog
      if (panel.showOkCancelDialog("URL")) {
        System.out.println("User clicked OK.  URL is " + f.getText());
        System.exit(0);
      } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.