Package com.l2fprod.common.swing

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


    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

    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

    /**
     * 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

    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

      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

Related Classes of com.l2fprod.common.swing.JButtonBar

Copyright © 2018 www.massapicom. 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.