X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGSequenceLink.java;h=ed74f02d9da6f55974aed37102e97c219c866cad;hb=ad15cff29620f960119f80176f1fd443da9f6763;hp=05d6edf31cd96ae703b8cf9fd1ad90735c50bced;hpb=d423f22792e47dbc800ae220a58677f988971d06;p=jalview.git diff --git a/src/jalview/jbgui/GSequenceLink.java b/src/jalview/jbgui/GSequenceLink.java index 05d6edf..ed74f02 100755 --- a/src/jalview/jbgui/GSequenceLink.java +++ b/src/jalview/jbgui/GSequenceLink.java @@ -1,22 +1,27 @@ /* - * 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-Rel$$) + * Copyright (C) $$Year-Rel$$ 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 jalview.util.UrlLink; import java.awt.*; @@ -39,7 +44,7 @@ public class GSequenceLink extends Panel private void jbInit() throws Exception { this.setLayout(gridBagLayout1); - nameTB.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); + nameTB.setFont(JvSwingUtils.getLabelFont()); nameTB.setBounds(new Rectangle(77, 10, 310, 23)); nameTB.addKeyListener(new KeyAdapter() { @@ -48,7 +53,7 @@ public class GSequenceLink extends Panel nameTB_keyTyped(e); } }); - urlTB.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); + urlTB.setFont(JvSwingUtils.getLabelFont()); urlTB.setText("http://www."); urlTB.setBounds(new Rectangle(78, 40, 309, 23)); urlTB.addKeyListener(new KeyAdapter() @@ -58,19 +63,19 @@ public class GSequenceLink extends Panel urlTB_keyTyped(e); } }); - jLabel1.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); + jLabel1.setFont(JvSwingUtils.getLabelFont()); jLabel1.setHorizontalAlignment(SwingConstants.TRAILING); - jLabel1.setText("Link Name"); + jLabel1.setText(MessageManager.getString("label.link_name")); jLabel1.setBounds(new Rectangle(4, 10, 71, 24)); - jLabel2.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11)); + jLabel2.setFont(JvSwingUtils.getLabelFont()); jLabel2.setHorizontalAlignment(SwingConstants.TRAILING); - jLabel2.setText("URL"); + jLabel2.setText(MessageManager.getString("label.url")); jLabel2.setBounds(new Rectangle(17, 37, 54, 27)); jLabel3.setFont(new java.awt.Font("Verdana", Font.ITALIC, 11)); - jLabel3.setText("Use $SEQUENCE_ID$ or $SEQUENCE_ID=//=$"); + jLabel3.setText(MessageManager.getString("label.use_sequence_id_1")); jLabel3.setBounds(new Rectangle(21, 72, 351, 15)); jLabel4.setFont(new java.awt.Font("Verdana", Font.ITALIC, 11)); - jLabel4.setText("\nto embed sequence id in URL"); + jLabel4.setText(MessageManager.getString("label.use_sequence_id_2")); jLabel4.setBounds(new Rectangle(21, 93, 351, 15)); jPanel1.setBorder(BorderFactory.createEtchedBorder()); jPanel1.setLayout(null); @@ -116,8 +121,8 @@ public class GSequenceLink extends Panel JOptionPane .showInternalMessageDialog( jalview.gui.Desktop.desktop, - "Sequence URL must contain $SEQUENCE_ID$ or a regex $SEQUENCE_ID=//=$", - "URL not valid", JOptionPane.WARNING_MESSAGE); + MessageManager.getString("warn.url_must_contain"), + MessageManager.getString("label.invalid_url"), JOptionPane.WARNING_MESSAGE); return false; }