]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/style/FontChooser.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / actions / style / FontChooser.java
index 85524e2ed9d0299b2e57a652b4c2d467d2d650e6..3580b82b6414333cae7c2d39faf17e11f1ab17c3 100644 (file)
@@ -27,7 +27,7 @@ public class FontChooser extends JPanel {
 
     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;
@@ -59,7 +59,7 @@ public class FontChooser extends JPanel {
         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);
@@ -102,14 +102,14 @@ public class FontChooser extends JPanel {
         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);