private static final long serialVersionUID = -53650261362110193L;
- private static Font DEFAULT_FONT = new Font("Arial", Font.PLAIN, 16);
+ private static Font DEFAULT_FONT = new Font(Messages.FontChooser_DefaultFont, Font.PLAIN, 16);
private String sampleText;
private JLabel text;
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] ff = ge.getAvailableFontFamilyNames();
fonts = new String[ff.length + 1];
- fonts[0] = "-- keep current font --";
+ fonts[0] = Messages.FontChooser_KeepCurrentFont;
System.arraycopy(ff, 0, fonts, 1, ff.length);
fontList = new JList(fonts);
sizeComboBox = new JComboBox(sizes);
sizeComboBox.addActionListener(listener);
sizeComboBox.setSelectedIndex(7);
- controlPanel.add(new JLabel("Size: "));
+ controlPanel.add(new JLabel(Messages.FontChooser_Size));
controlPanel.add(sizeComboBox);
- boldCheckBox = new JCheckBox("Bold");
+ boldCheckBox = new JCheckBox(Messages.FontChooser_Bold);
boldCheckBox.addActionListener(listener);
controlPanel.add(boldCheckBox);
- italicCheckBox = new JCheckBox("Italic");
+ italicCheckBox = new JCheckBox(Messages.FontChooser_Italic);
italicCheckBox.addActionListener(listener);
controlPanel.add(italicCheckBox);