FileDocCategorySizeDatePackage
MotifPopupMenuSeparatorUI.javaAPI DocJava SE 5 API1105Fri Aug 26 14:54:46 BST 2005com.sun.java.swing.plaf.motif

MotifPopupMenuSeparatorUI

public class MotifPopupMenuSeparatorUI extends MotifSeparatorUI
A Motif 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 MotifPopupMenuSeparatorUI();
    
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 );