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.

View | Details | Raw Unified | Return to bug 192221
Collapse All | Expand All

(-)a/o.n.swing.plaf/src/org/netbeans/swing/plaf/aqua/AquaSeparatorUI.java (-14 / +5 lines)
Lines 75-97 Link Here
75
    }
75
    }
76
    
76
    
77
    public void paint( Graphics g, JComponent c ) {
77
    public void paint( Graphics g, JComponent c ) {
78
        if (c.getParent() instanceof JPopupMenu) {
78
        Dimension s = c.getSize();
79
            Dimension s = c.getSize();
79
80
            
80
        g.setColor(lineColor);
81
            g.setColor(lineColor);
81
        g.drawLine(1, 5, s.width - 2, 5);
82
            g.drawLine(1, 5, s.width - 2, 5);
83
        }
84
    }
82
    }
85
    
83
    
86
    public Dimension getPreferredSize(JComponent c) {
84
    public Dimension getPreferredSize(JComponent c) {
87
        Dimension s;
85
        return new Dimension( 0, 12 );
88
        if (c.getParent() instanceof JPopupMenu) {
89
            return new Dimension( 0, 12 );
90
        } else {
91
            s = new Dimension(0, 0);
92
        }
93
        
94
        return s;
95
    }
86
    }
96
    
87
    
97
    public Dimension getMinimumSize( JComponent c ) { return null; }
88
    public Dimension getMinimumSize( JComponent c ) { return null; }

Return to bug 192221