FileDocCategorySizeDatePackage
WindowsToolBarUI.javaAPI DocJava SE 5 API1693Fri Aug 26 14:54:50 BST 2005com.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 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) {
	    String category = "toolbar";
	    String subCategory = (String)c.getClientProperty("XPStyle.subClass");
	    if (subCategory != null) {
		category = subCategory + "::" + category;
	    }
	    xp.getSkin(category).paintSkin(g, 0, 0, c.getSize().width, c.getSize().height, 0);
	} else {
	    super.paint(g, c);
	}