Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicButtonUI


      //setIcon(xIcon);
      setSize(new Dimension(size, size));
      setPreferredSize(new Dimension(size, size));
      setToolTipText("close this tab");
      //Make the button looks the same for all Laf's
      setUI(new BasicButtonUI());
      //Make it transparent
      setContentAreaFilled(false);
      //No need to be focusable
      setFocusable(false);
      setBorder(BorderFactory.createEtchedBorder());
View Full Code Here


    public TabButton() {
      int size = 17;
      setPreferredSize(new Dimension(size, size));
      setToolTipText(GT._("Close this tab"));
      setUI(new BasicButtonUI());
      setContentAreaFilled(false);
      setFocusable(false);
      setBorder(BorderFactory.createEtchedBorder());
      setBorderPainted(false);
      addMouseListener(closeMouseListener);
View Full Code Here

        public TabButton() {
            int size = 17;
            setPreferredSize(new Dimension(size, size));
            setToolTipText("close this tab");
            //Make the button looks the same for all Laf's
            setUI(new BasicButtonUI());
            //Make it transparent
            setContentAreaFilled(false);
            //No need to be focusable
            setFocusable(false);
            setBorder(BorderFactory.createEtchedBorder());
View Full Code Here

  public void updateUI()
  {
    if(OperatingSystem.isWindows())
    {
      /* Workaround for uncooperative Windows L&F */
      setUI(new BasicButtonUI());
    }
    else
      super.updateUI();

    setBorder(new EtchedBorder());
View Full Code Here

                }
            }
        };
        button.setPreferredSize(new Dimension(20, 20));
        button.setToolTipText(closeButtonTip);
        button.setUI(new BasicButtonUI());
        button.setContentAreaFilled(false);
        button.setFocusable(false);
        button.setBorder(BorderFactory.createLineBorder(Color.GRAY));
        button.setBorderPainted(false);
        button.setRolloverEnabled(true);
View Full Code Here

    private class CloseButton extends JButton {
      
        public CloseButton() {
            setPreferredSize(new Dimension(CLOSE_ICON_SIZE, CLOSE_ICON_SIZE));
            //Make the button looks the same for all Laf's
            setUI(new BasicButtonUI());
            //Make it transparent
            setContentAreaFilled(false);
            //No need to be focusable
            setFocusable(false);
            setBorderPainted(false);
View Full Code Here

    public TabButton() {
      int size = 17;
      setPreferredSize(new Dimension(size, size));
      setToolTipText("Supprimer cette feuille");
      //Make the button looks the same for all Laf's
      setUI(new BasicButtonUI());
      //Make it transparent
      setContentAreaFilled(false);
      //No need to be focusable
      setFocusable(false);
      setBorder(BorderFactory.createEtchedBorder());
View Full Code Here

  public CloseButton(ActionListener listener)
  {
    super(ICON);

    setUI(new BasicButtonUI());
    setContentAreaFilled(false);
    setFocusable(false);
    setPreferredSize(new Dimension(ICON.getIconWidth(), ICON.getIconHeight()));

    addActionListener(listener);
View Full Code Here

                }
            }
        };
        button.setPreferredSize(new Dimension(20, 20));
        button.setToolTipText(closeButtonTip);
        button.setUI(new BasicButtonUI());
        button.setContentAreaFilled(false);
        button.setFocusable(false);
        button.setBorder(BorderFactory.createLineBorder(Color.GRAY));
        button.setBorderPainted(false);
        button.setRolloverEnabled(true);
View Full Code Here

    public TabButton() {
      int size = 17;
      setPreferredSize(new Dimension(size, size));
      setToolTipText("Close");
      setUI(new BasicButtonUI());
      setContentAreaFilled(false);
      setFocusable(false);
      setBorder(BorderFactory.createEtchedBorder());
      setBorderPainted(false);
      addMouseListener(BUTTON_MOUSE_LISTENER);
View Full Code Here

TOP

Related Classes of javax.swing.plaf.basic.BasicButtonUI

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.