Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicButtonUI


    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 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 CloseTabButton() {
            int size = 17;

            setPreferredSize(new Dimension(size, size));
            setToolTipText(Program.getStringsBundle().getString("chatTabCloseTT"));
            setUI(new BasicButtonUI());

            setContentAreaFilled(false);
            setFocusable(false);

            setBorderPainted(false);
View Full Code Here

    tabButtonBorder = UIManager.getBorder("OutlookBar.tabButtonBorder");
  }

  protected TabButton createTabButton() {
    TabButton button = new TabButton();
    button.setUI(new BasicButtonUI());
    button.setBorder(tabButtonBorder);
    return button;
  }
View Full Code Here

        // Override the default look and feel: use basic L&F because some L&F (esp. WinXP)
        // ignores the border property
        if(button instanceof JToggleButton) {
            button.setUI(new BasicToggleButtonUI());
        } else {
            button.setUI(new BasicButtonUI());
        }
       
        button.setRolloverEnabled(true);
       
        UIDefaults table = UIManager.getLookAndFeelDefaults();
View Full Code Here

    final JButton button = new JButton();
    button.setIcon(ICON_CLOSE_INACTIVE);
    button.setRolloverIcon(ICON_CLOSE);
    button.setRolloverEnabled(true);
    button.setOpaque(false);
    button.setUI(new BasicButtonUI());
    button.setContentAreaFilled(false);
    button.setFocusable(false);
    button.setBorder(null);
    button.setBorderPainted(false);
    button.addActionListener(new ActionListener() {
View Full Code Here

       
        public CloseTabButton() {
            setPreferredSize(new Dimension(BUTTON_SIZE, BUTTON_SIZE));
            setToolTipText("close this profile");
            // 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

     * Nullifies button styles
     */

    public static void nullifyButtonUI ( final JButton button )
    {
        button.setUI ( new BasicButtonUI () );
        button.setMargin ( new Insets ( 0, 0, 0, 0 ) );
        button.setBorder ( null );
        button.setBorderPainted ( false );
        button.setContentAreaFilled ( false );
        button.setFocusable ( false );
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 XImageButton()
  {
    super();
   
    currentProject = XProjectManager.getCurrentProject();
    setUI( new BasicButtonUI() );
//    setModel( new DefaultButtonModel());
    addMouseListener( this );
    setBorderPainted( false );
    setContentAreaFilled( false );
    setRolloverEnabled( true );
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.