X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGFontChooser.java;h=5f1748e8f6933e79aaad1786b91fdfb573545b39;hb=9e00a71bcb54f0bcfcd082ae1660a1c9fdf9d4ed;hp=12e1740734f9d12a149d5bb2c635f82a5acb8fe7;hpb=59d682209891099d46b960509907c79e3fb276fe;p=jalview.git diff --git a/src/jalview/jbgui/GFontChooser.java b/src/jalview/jbgui/GFontChooser.java index 12e1740..5f1748e 100755 --- a/src/jalview/jbgui/GFontChooser.java +++ b/src/jalview/jbgui/GFontChooser.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) - * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1) + * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. * @@ -14,10 +14,12 @@ * 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 . + * 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 +95,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 +120,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 +139,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 +148,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 +167,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 +177,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 +189,8 @@ 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);