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.
private static void setBoldFontForMenuText(JMenuItem mi) {
java.awt.Font font = mi.getFont();
mi.setFont(new java.awt.Font(font.getFontName(),
mi.setFont(font.deriveFont(font.getStyle() | java.awt.Font.BOLD));
font.getStyle() | java.awt.Font.BOLD,
font.getSize()));
}
private static void addSortedMenuItem(JMenu menu, JMenuItem menuItem) {
FakePeerUtils.drawLoweredBox(g,0,0,sz.width,sz.height);
// by default display the class name
g.setFont(new Font("Dialog", Font.BOLD, 12)); // NOI18N
Font origFont = g.getFont();
g.setFont(origFont.deriveFont(Font.BOLD, origFont.getSize() + 1));
String className = _target.getClass().getName();
className = className.substring(className.lastIndexOf('.') + 1);