FileDocCategorySizeDatePackage
BasicPopupMenuSeparatorUI.javaAPI DocJava SE 5 API1109Fri Aug 26 14:58:04 BST 2005javax.swing.plaf.basic

BasicPopupMenuSeparatorUI

public class BasicPopupMenuSeparatorUI extends BasicSeparatorUI
A Basic L&F implementation of PopupMenuSeparatorUI. This implementation is a "combined" view/controller.
version
1.11 12/19/03
author
Jeff Shapiro

Fields Summary
Constructors Summary
Methods Summary
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)

        return new BasicPopupMenuSeparatorUI();
    
public java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)

        return new Dimension( 0, 2 );
    
public voidpaint(java.awt.Graphics g, javax.swing.JComponent c)

        Dimension s = c.getSize();
	
	g.setColor( c.getForeground() );
	g.drawLine( 0, 0, s.width, 0 );

	g.setColor( c.getBackground() );
	g.drawLine( 0, 1, s.width, 1 );