X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGFontChooser.java;h=17ed4ad4f14979ea7293bad76f993a2b2e92dffb;hb=286715d8408510556366a454a748daf8f60444f1;hp=3352e42d6d98d2efcc86ab449fb67e04f51392e9;hpb=a45774ee31d9f35d4eff46d54d7deab719afb092;p=jalview.git
diff --git a/src/jalview/jbgui/GFontChooser.java b/src/jalview/jbgui/GFontChooser.java
index 3352e42..17ed4ad 100755
--- a/src/jalview/jbgui/GFontChooser.java
+++ b/src/jalview/jbgui/GFontChooser.java
@@ -1,23 +1,27 @@
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
- * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
+ * Copyright (C) 2014 The Jalview Authors
*
* This file is part of Jalview.
*
* Jalview is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
* Jalview is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see .
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
*/
package jalview.jbgui;
import jalview.gui.JvSwingUtils;
+import jalview.util.MessageManager;
import java.awt.*;
import java.awt.event.*;
@@ -93,7 +97,7 @@ public class GFontChooser extends JPanel
{
jLabel1.setFont(new java.awt.Font("Verdana", 0, 11));
jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
- jLabel1.setText("Font: ");
+ jLabel1.setText(MessageManager.getString("label.font"));
jLabel1.setVerticalTextPosition(javax.swing.SwingConstants.CENTER);
this.setLayout(null);
fontSize.setFont(new java.awt.Font("Verdana", 0, 11));
@@ -118,11 +122,11 @@ public class GFontChooser extends JPanel
});
jLabel2.setFont(new java.awt.Font("Verdana", 0, 11));
jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
- jLabel2.setText("Size: ");
+ jLabel2.setText(MessageManager.getString("label.size"));
jLabel2.setVerticalTextPosition(javax.swing.SwingConstants.CENTER);
jLabel3.setFont(new java.awt.Font("Verdana", 0, 11));
jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
- jLabel3.setText("Style: ");
+ jLabel3.setText(MessageManager.getString("label.style"));
jLabel3.setVerticalTextPosition(javax.swing.SwingConstants.CENTER);
fontName.setFont(new java.awt.Font("Verdana", 0, 11));
fontName.setMaximumSize(new Dimension(32767, 32767));
@@ -137,7 +141,7 @@ public class GFontChooser extends JPanel
}
});
ok.setFont(new java.awt.Font("Verdana", 0, 11));
- ok.setText("OK");
+ ok.setText(MessageManager.getString("action.ok"));
ok.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -146,7 +150,7 @@ public class GFontChooser extends JPanel
}
});
cancel.setFont(new java.awt.Font("Verdana", 0, 11));
- cancel.setText("Cancel");
+ cancel.setText(MessageManager.getString("action.cancel"));
cancel.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -165,7 +169,7 @@ public class GFontChooser extends JPanel
jPanel3.setBounds(new Rectangle(174, 38, 134, 21));
jPanel3.setLayout(borderLayout2);
defaultButton.setFont(JvSwingUtils.getLabelFont());
- defaultButton.setText("Set as Default");
+ defaultButton.setText(MessageManager.getString("label.set_as_default"));
defaultButton.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -175,7 +179,7 @@ public class GFontChooser extends JPanel
});
smoothFont.setFont(JvSwingUtils.getLabelFont());
smoothFont.setOpaque(false);
- smoothFont.setText("Anti-alias Fonts (Slower to render)");
+ smoothFont.setText(MessageManager.getString("label.anti_alias_fonts"));
smoothFont.setBounds(new Rectangle(41, 65, 223, 23));
smoothFont.addActionListener(new ActionListener()
{
@@ -187,8 +191,9 @@ public class GFontChooser extends JPanel
monospaced.setEnabled(false);
monospaced.setFont(JvSwingUtils.getLabelFont());
monospaced.setOpaque(false);
- monospaced.setToolTipText("Monospaced fonts are faster to render");
- monospaced.setText("Monospaced");
+ monospaced.setToolTipText(MessageManager
+ .getString("label.monospaced_fonts_faster_to_render"));
+ monospaced.setText(MessageManager.getString("label.monospaced_font"));
jPanel4.setOpaque(false);
jPanel4.setBounds(new Rectangle(24, 92, 259, 35));
jPanel1.add(jLabel1, BorderLayout.WEST);