Examples of JButtonBar


Examples of com.eviware.soapui.support.components.JButtonBar

      }
    } );

    if( actions != null )
    {
      JButtonBar buttons = new JButtonBar();
      buttons.addActions( actions );
      rootPane.setDefaultButton( buttons.getDefaultButton() );

      for( int c = 0; c < actions.getActionCount(); c++ )
      {
        Action action = actions.getActionAt( c );
        if( action instanceof HelpActionMarker )
View Full Code Here

Examples of com.eviware.soapui.support.components.JButtonBar

                dialog.setVisible(false);
            }
        });

        if (actions != null) {
            JButtonBar buttons = new JButtonBar();
            buttons.addActions(actions);
            rootPane.setDefaultButton(buttons.getDefaultButton());

            for (int c = 0; c < actions.getActionCount(); c++) {
                Action action = actions.getActionAt(c);
                if (action instanceof HelpActionMarker) {
                    rootPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(
View Full Code Here

Examples of com.l2fprod.common.swing.JButtonBar

    private Component currentComponent;
    private JButtonBar toolbar;
    private ButtonGroup group;

    public ButtonBarPreference() {
        toolbar = new JButtonBar(JButtonBar.VERTICAL);

        toolbar.setUI(new BlueishButtonBarUI());

        setLayout(new BorderLayout());
View Full Code Here

Examples of com.l2fprod.common.swing.JButtonBar

    private Component currentComponent;
    private JButtonBar toolbar;
    private ButtonGroup group;

    public ButtonBarPreference() {
        toolbar = new JButtonBar(JButtonBar.VERTICAL);

        toolbar.setUI(new BlueishButtonBarUI());

        setLayout(new BorderLayout());
View Full Code Here

Examples of com.l2fprod.common.swing.JButtonBar

    private Component currentComponent;
    private JButtonBar toolbar;
    private ButtonGroup group;

    public ButtonBarPreference() {
        toolbar = new JButtonBar(JButtonBar.VERTICAL);

        toolbar.setUI(new BlueishButtonBarUI());

        setLayout(new BorderLayout());
View Full Code Here

Examples of com.l2fprod.common.swing.JButtonBar

    /**
     * Set the current properties from the properties file
     */
    setLayout(new BorderLayout());

    JButtonBar toolbar = new JButtonBar(JButtonBar.VERTICAL);

    if(PdfDecoder.isRunningOnMac)
      toolbar.setPreferredSize(new Dimension(120,0));

    add(new ButtonBarPanel(toolbar), BorderLayout.CENTER);

    toolbar.setBorder(BorderFactory.createMatteBorder(0, 0, 0, 1, Color.gray));

    JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));

    Dimension dimension = new Dimension(5,40);
View Full Code Here

Examples of com.l2fprod.common.swing.JButtonBar

    JTabbedPane tabs = new JTabbedPane();
    add("Center", tabs);

    { // with the mozilla L&F
      JButtonBar toolbar = new JButtonBar(JButtonBar.VERTICAL);
      toolbar.setUI(new BlueishButtonBarUI());
      tabs.addTab("Mozilla L&F", new ButtonBarPanel(toolbar));
    }

    { // with the icon packager L&F
      JButtonBar toolbar = new JButtonBar(JButtonBar.VERTICAL);
      toolbar.setUI(new IconPackagerButtonBarUI());
      tabs.addTab("Icon Packager L&F", new ButtonBarPanel(toolbar));
    }
  }
View Full Code Here

Examples of com.l2fprod.common.swing.JButtonBar

      bar.setLayout(new PercentLayout(PercentLayout.VERTICAL, 2));
    }
  }

  public Dimension getPreferredSize(JComponent c) {
    JButtonBar b = (JButtonBar)c;
    Dimension preferred;
    // it happens the layout is null - Netbeans 5.5 beta 2
    if (b.getLayout() == null) {
      preferred = new Dimension(100, 100);
    } else {
      preferred = b.getLayout().preferredLayoutSize(c);
    }
   
    if (b.getOrientation() == JButtonBar.HORIZONTAL) {
      return new Dimension(preferred.width, 53);
    } else {
      return new Dimension(74, preferred.height);
    }
  }
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.