This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
}
public void paint( Graphics g, JComponent c ) {
if (c.getParent() instanceof JPopupMenu) {
Dimension s = c.getSize();
g.setColor(lineColor);
g.drawLine(1, 5, s.width - 2, 5);
public Dimension getPreferredSize(JComponent c) {
Dimension s;
return new Dimension( 0, 12 );
} else {
s = new Dimension(0, 0);
return s;
public Dimension getMinimumSize( JComponent c ) { return null; }