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.
comp.setName (NbBundle.getBundle (TestAction.class).getString ("LBL_test_window_title"));
comp.setLayout (new BorderLayout ());
JLabel label = new JLabel (NbBundle.getBundle (TestAction.class).getString ("LBL_jlabel_text"));
label.setFont (new Font ("Serif", Font.ITALIC | Font.BOLD, 24));
label.setFont (new Font ("Serif", Font.ITALIC | Font.BOLD,
label.getFont().getSize() + 13));
label.setHorizontalAlignment (SwingConstants.CENTER);
comp.add (label, BorderLayout.CENTER);
comp.setPreferredSize (new Dimension (500, 200));
customizeButton.setFocusTraversable(true);
Font currentFont = customizeButton.getFont ();
customizeButton.setFont (
customizeButton.setFont(
new Font (
currentFont.deriveFont(currentFont.getStyle () | Font.BOLD)
currentFont.getName (),
currentFont.getStyle () | Font.BOLD,
currentFont.getSize ()
)
);
customizeButton.addFocusListener(getWriteComponentListener());
customizeButton.addSheetButtonListener(new CustomizeListener());
/** Set to a sane font (not proportional!). */
public void install (JEditorPane pane) {
super.install (pane);
pane.setFont (new Font ("Monospaced", Font.PLAIN, 12)); //NOI18N
pane.setFont (new Font ("Monospaced", Font.PLAIN, pane.getFont().getSize() + 1)); //NOI18N
}