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 33668
Collapse All | Expand All

(-)form/src/org/netbeans/modules/form/actions/EventsAction.java (-3 / +1 lines)
Lines 194-202 Link Here
194
194
195
    private static void setBoldFontForMenuText(JMenuItem mi) {
195
    private static void setBoldFontForMenuText(JMenuItem mi) {
196
        java.awt.Font font = mi.getFont();
196
        java.awt.Font font = mi.getFont();
197
        mi.setFont(new java.awt.Font(font.getFontName(),
197
        mi.setFont(font.deriveFont(font.getStyle() | java.awt.Font.BOLD));
198
                                     font.getStyle() | java.awt.Font.BOLD,
199
                                     font.getSize()));
200
    }
198
    }
201
199
202
    private static void addSortedMenuItem(JMenu menu, JMenuItem menuItem) {
200
    private static void addSortedMenuItem(JMenu menu, JMenuItem menuItem) {
(-)form/src/org/netbeans/modules/form/fakepeer/FakeComponentPeer.java (-1 / +2 lines)
Lines 346-352 Link Here
346
            FakePeerUtils.drawLoweredBox(g,0,0,sz.width,sz.height);
346
            FakePeerUtils.drawLoweredBox(g,0,0,sz.width,sz.height);
347
347
348
            // by default display the class name
348
            // by default display the class name
349
            g.setFont(new Font("Dialog", Font.BOLD, 12)); // NOI18N
349
            Font origFont = g.getFont(); 
350
            g.setFont(origFont.deriveFont(Font.BOLD, origFont.getSize() + 1)); 
350
351
351
            String className = _target.getClass().getName();
352
            String className = _target.getClass().getName();
352
            className = className.substring(className.lastIndexOf('.') + 1);
353
            className = className.substring(className.lastIndexOf('.') + 1);

Return to bug 33668