FileDocCategorySizeDatePackage
WindowsToolBarUI.javaAPI DocJava SE 6 API1970Tue Jun 10 00:21:58 BST 2008com.sun.java.swing.plaf.windows

WindowsToolBarUI

public class WindowsToolBarUI extends BasicToolBarUI

Fields Summary
Constructors Summary
Methods Summary
protected javax.swing.border.BordercreateNonRolloverBorder()

	if (XPStyle.getXP() != null) {
	    return new EmptyBorder(3, 3, 3, 3);
	} else {
	    return super.createNonRolloverBorder();
	}
    
protected javax.swing.border.BordercreateRolloverBorder()

	if (XPStyle.getXP() != null) {
	    return new EmptyBorder(3, 3, 3, 3);
	} else {
	    return super.createRolloverBorder();
	}
    
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)

	return new WindowsToolBarUI();
    
protected javax.swing.border.BordergetRolloverBorder(javax.swing.AbstractButton b)
{@inheritDoc}

since
1.6

        XPStyle xp = XPStyle.getXP();
        if (xp != null) {
            return xp.getBorder(b, WindowsButtonUI.getXPButtonType(b));
        } else {
            return super.getRolloverBorder(b);
        }
    
protected voidinstallDefaults()

	if (XPStyle.getXP() != null) {
	    setRolloverBorders(true);
	}
	super.installDefaults();
    
public voidpaint(java.awt.Graphics g, javax.swing.JComponent c)

	XPStyle xp = XPStyle.getXP();
	if (xp != null) {
            xp.getSkin(c, Part.TP_TOOLBAR).paintSkin(g, 0, 0, 
                        c.getWidth(), c.getHeight(), null, true);
	} else {
	    super.paint(g, c);
	}