X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGFontChooser.java;h=47d71828e79cf457e2fa5499bf2b93774111fe55;hb=a8f483d04205bb8273ee311c12968b7e86d205fa;hp=87506efb833cdb00dcb529067041625f8565d64a;hpb=d423f22792e47dbc800ae220a58677f988971d06;p=jalview.git diff --git a/src/jalview/jbgui/GFontChooser.java b/src/jalview/jbgui/GFontChooser.java index 87506ef..47d7182 100755 --- a/src/jalview/jbgui/GFontChooser.java +++ b/src/jalview/jbgui/GFontChooser.java @@ -1,22 +1,26 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5) - * Copyright (C) 2010 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. - * + * * 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 . + * 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.*; import javax.swing.*; @@ -91,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)); @@ -116,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)); @@ -135,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) @@ -144,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) @@ -162,8 +166,8 @@ public class GFontChooser extends JPanel jPanel3.setOpaque(false); jPanel3.setBounds(new Rectangle(174, 38, 134, 21)); jPanel3.setLayout(borderLayout2); - defaultButton.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); - defaultButton.setText("Set as Default"); + defaultButton.setFont(JvSwingUtils.getLabelFont()); + defaultButton.setText(MessageManager.getString("label.set_as_default")); defaultButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) @@ -171,9 +175,9 @@ public class GFontChooser extends JPanel defaultButton_actionPerformed(e); } }); - smoothFont.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); + 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() { @@ -183,10 +187,10 @@ public class GFontChooser extends JPanel } }); monospaced.setEnabled(false); - monospaced.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); + 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);