/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
+ * 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 <http://www.gnu.org/licenses/>.
+ * 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.*;
{
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));
});
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));
}
});
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)
}
});
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)
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)
});
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()
{
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);