X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Factions%2Fstyle%2FFontChooser.java;h=3580b82b6414333cae7c2d39faf17e11f1ab17c3;hb=b4374193caf61635d382af556ec913bf278d53a8;hp=85524e2ed9d0299b2e57a652b4c2d467d2d650e6;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/style/FontChooser.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/style/FontChooser.java index 85524e2ed..3580b82b6 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/style/FontChooser.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/style/FontChooser.java @@ -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);