Ignore:
Timestamp:
2010-10-06T23:51:08+02:00 (14 years ago)
Author:
postfix
Message:

'some new internationalized messages'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/smed_about/src/smed_about/SmedAbout.java

    r23445 r23486  
    22
    33import javax.swing.ImageIcon;
     4import javax.swing.JApplet;
    45import javax.swing.JComponent;
     6import javax.swing.JEditorPane;
    57
    68import smed.plug.ifc.SmedPluggable;
    79import smed.plug.ifc.SmedPluginManager;
    810import javax.swing.JPanel;
     11
     12import java.applet.Applet;
     13import java.awt.Color;
     14import java.awt.Cursor;
     15import java.awt.Desktop;
    916import java.awt.Dimension;
     17import java.awt.Graphics;
     18
    1019import javax.swing.JLabel;
     20import javax.swing.event.HyperlinkEvent;
     21import javax.swing.event.HyperlinkListener;
     22import javax.swing.text.html.HTMLDocument;
     23import javax.swing.text.html.HTMLFrameHyperlinkEvent;
     24
    1125import java.awt.Rectangle;
     26import java.awt.event.ActionEvent;
     27import java.awt.event.ActionListener;
     28import java.awt.event.MouseAdapter;
     29import java.awt.event.MouseEvent;
     30import java.awt.event.MouseListener;
     31import java.awt.geom.Rectangle2D;
     32import java.io.IOException;
     33import java.net.MalformedURLException;
     34import java.net.URI;
     35import java.net.URISyntaxException;
     36import java.net.URL;
     37import java.util.LinkedList;
    1238
    13 public class SmedAbout implements SmedPluggable{
     39public class SmedAbout implements SmedPluggable {
    1440
    1541        public SmedPluginManager manager = null;
     
    2046       
    2147    private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="43,24"
    22     private JLabel jLabel = null;
    23     private JLabel jLabel1 = null;
    24     private JLabel jLabel2 = null;
     48    private JLabel aboutAuthors = null;
     49    private JLabel aboutVersion = null;
     50    private JLabel aboutDescription = null;
     51        private JLabel aboutCopyright = null;
     52        private JLabel aboutSmed = null;
     53        private JLabel aboutAvailable = null;
     54        private JLabel aboutPlugins = null;
     55
     56        private JLabel aboutLicense = null;
     57
     58        private JLabel aboutGPLV3Text = null;
     59
     60        private JEditorPane jEditorPane = null;
     61
     62        private JLabel aboutGPLV3Link = null;
     63       
    2564    @Override
    2665    public boolean start() {
     
    64103    private JPanel getJPanel() {
    65104        if (jPanel == null) {
    66             jLabel2 = new JLabel();
    67             jLabel2.setBounds(new Rectangle(30, 90, 340, 30));
    68             jLabel2.setText("Description:");
    69             jLabel1 = new JLabel();
    70             jLabel1.setBounds(new Rectangle(30, 55, 340, 30));
    71             jLabel1.setText("Version:                           Date:");
    72             jLabel = new JLabel();
    73             jLabel.setBounds(new Rectangle(30, 20, 340, 30));
    74             jLabel.setText("Authors: Werner König and Malclom Herring");
     105            aboutCopyright = new JLabel();
     106            aboutCopyright.setBounds(new Rectangle(125, 5, 245, 54));
     107            aboutCopyright.setText("<HTML><BODY>Copyright (c) 2009 / 2010<BR><center>by" +
     108                                        "<BR>Werner König & Malcolm Herring</BODY></HTML>");
     109
     110            aboutAuthors = new JLabel();
     111            aboutAuthors.setBounds(new Rectangle(30, 50, 340, 30));
     112            aboutAuthors.setText("Authors: Werner König and Malclom Herring");
     113
     114            aboutVersion = new JLabel();
     115            aboutVersion.setBounds(new Rectangle(30, 70, 340, 30));
     116            aboutVersion.setText("Version: 23479                     Date: 05.10.2010");
     117
     118            aboutDescription = new JLabel();
     119            aboutDescription.setBounds(new Rectangle(30, 90, 340, 30));
     120            aboutDescription.setText("Description: ");
     121
     122            aboutSmed = new JLabel();
     123            aboutSmed.setBounds(new Rectangle(100, 110, 265, 30));
     124            aboutSmed.setText("SeaMap Editor to map marks & lights");
     125
     126            aboutAvailable = new JLabel();
     127            aboutAvailable.setBounds(new Rectangle(30, 140, 141, 27));
     128            aboutAvailable.setText("available plugins:");
     129
     130                aboutPlugins = new JLabel();
     131            aboutPlugins.setBounds(new Rectangle(58, 160, 303, 60));
     132            aboutPlugins.setText("<HTML><BODY>SeaMark Editor" +
     133                        "<BR>SeaLight Editor" +
     134                        "<BR>Hello - an example plugin" +
     135                        "<BR>About - this tab</BODY></HTML>");
     136           
     137            aboutLicense = new JLabel();
     138            aboutLicense.setBounds(new Rectangle(5, 225, 390, 70));
     139            aboutLicense.setText("<HTML><BODY><U>SeaMap Editor license</U>" +
     140                        "<BR>SeaMapEditor, and all its integral parts, are released under" +
     141                        " the GNU General Public License v2 or later.</BODY></HTML>");
     142
     143            aboutGPLV3Text = new JLabel();
     144            aboutGPLV3Text.setBounds(new Rectangle(3, 280, 246, 40));
     145            aboutGPLV3Text.setText("The license v3 is accessible here:");
     146
     147            aboutGPLV3Link = new JLabel();
     148            aboutGPLV3Link.setBounds(new Rectangle(5, 300, 370, 28));
     149            aboutGPLV3Link.setText("http://www.gnu.org/licenses/gpl.html");
     150
     151           
    75152            jPanel = new JPanel();
    76153            jPanel.setLayout(null);
    77             jPanel.setSize(new Dimension(400, 300));
    78             jPanel.add(jLabel, null);
    79             jPanel.add(jLabel1, null);
    80             jPanel.add(jLabel2, null);
     154            jPanel.setSize(new Dimension(400, 416));
     155            jPanel.add(aboutAuthors, null);
     156            jPanel.add(aboutVersion, null);
     157            jPanel.add(aboutDescription, null);
     158            jPanel.add(aboutCopyright, null);
     159            jPanel.add(aboutSmed, null);
     160            jPanel.add(aboutAvailable, null);
     161            jPanel.add(aboutPlugins, null);
     162            jPanel.add(aboutLicense, null);
     163            jPanel.add(aboutGPLV3Text, null);
     164            jPanel.add(aboutGPLV3Link, null);
    81165        }
    82166        return jPanel;
    83167    }
    84 
     168   
    85169        @Override
    86170        public String getFileName() { return "smed_about.jar"; }
Note: See TracChangeset for help on using the changeset viewer.