Ignore:
Timestamp:
2010-10-07T21:56:26+02:00 (14 years ago)
Author:
postfix
Message:

'some more information added'

Location:
applications/editors/josm/plugins/smed/plugs/smed_about
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/smed_about/build.xml

    r23426 r23498  
    3131
    3232        <!-- enter the SVN commit message -->
    33         <property name="commit.message" value="New release" />
     33        <property name="commit.message" value="some more information added" />
    3434        <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3535        <property name="plugin.main.version" value="3329" />
  • applications/editors/josm/plugins/smed/plugs/smed_about/src/smed_about/SmedAbout.java

    r23491 r23498  
    22
    33import javax.swing.ImageIcon;
    4 import javax.swing.JApplet;
    54import javax.swing.JComponent;
    65import javax.swing.JEditorPane;
     
    98import smed.plug.ifc.SmedPluginManager;
    109import javax.swing.JPanel;
    11 
    12 import java.applet.Applet;
    13 import java.awt.Color;
    14 import java.awt.Cursor;
    15 import java.awt.Desktop;
    1610import java.awt.Dimension;
    17 import java.awt.Graphics;
    18 
    1911import javax.swing.JLabel;
    20 import javax.swing.event.HyperlinkEvent;
    21 import javax.swing.event.HyperlinkListener;
    22 import javax.swing.text.html.HTMLDocument;
    23 import javax.swing.text.html.HTMLFrameHyperlinkEvent;
    24 
    2512import java.awt.Rectangle;
    26 import java.awt.event.ActionEvent;
    27 import java.awt.event.ActionListener;
    28 import java.awt.event.MouseAdapter;
    29 import java.awt.event.MouseEvent;
    30 import java.awt.event.MouseListener;
    31 import java.awt.geom.Rectangle2D;
    32 import java.io.IOException;
    33 import java.net.MalformedURLException;
    34 import java.net.URI;
    35 import java.net.URISyntaxException;
    36 import java.net.URL;
    37 import java.util.LinkedList;
    3813
    3914public class SmedAbout implements SmedPluggable {
     
    6136
    6237        private JLabel aboutGPLV3Link = null;
     38
     39        private JLabel aboutGPLV2Text = null;
     40
     41        private JLabel aboutGPLV2Link = null;
     42
     43        private JLabel jLabel = null;
    6344       
    6445    @Override
     
    10384    private JPanel getJPanel() {
    10485        if (jPanel == null) {
     86            jLabel = new JLabel();
     87            jLabel.setBounds(new Rectangle(45, 0, 58, 58));
     88            jLabel.setIcon(new ImageIcon(getClass().getResource("/images/oseam_56x56.png")));
     89            jLabel.setText("");
    10590            aboutCopyright = new JLabel();
    106             aboutCopyright.setBounds(new Rectangle(125, 0, 245, 54));
     91            aboutCopyright.setBounds(new Rectangle(125, 0, 245, 55));
    10792            aboutCopyright.setText("<HTML><BODY>Copyright (c) 2009 / 2010<BR><center>by" +
    10893                                        "<BR>Werner König & Malcolm Herring</BODY></HTML>");
    10994
    11095            aboutAuthors = new JLabel();
    111             aboutAuthors.setBounds(new Rectangle(30, 40, 340, 30));
     96            aboutAuthors.setBounds(new Rectangle(30, 50
     97                        , 340, 30));
    11298            aboutAuthors.setText("Authors: Werner König and Malclom Herring");
    11399
    114100            aboutVersion = new JLabel();
    115             aboutVersion.setBounds(new Rectangle(30, 50, 340, 30));
     101            aboutVersion.setBounds(new Rectangle(30, 65, 340, 30));
    116102            aboutVersion.setText("Version: 23479                     Date: 05.10.2010");
    117103
    118104            aboutDescription = new JLabel();
    119             aboutDescription.setBounds(new Rectangle(30, 60, 340, 30));
     105            aboutDescription.setBounds(new Rectangle(30, 80, 340, 30));
    120106            aboutDescription.setText("Description: ");
    121107
    122108            aboutSmed = new JLabel();
    123             aboutSmed.setBounds(new Rectangle(100, 70, 265, 30));
     109            aboutSmed.setBounds(new Rectangle(100, 95, 265, 30));
    124110            aboutSmed.setText("SeaMap Editor to map marks & lights");
    125111
    126112            aboutAvailable = new JLabel();
    127             aboutAvailable.setBounds(new Rectangle(30, 90, 141, 27));
     113            aboutAvailable.setBounds(new Rectangle(30, 115, 141, 27));
    128114            aboutAvailable.setText("available plugins:");
    129115
    130116                aboutPlugins = new JLabel();
    131             aboutPlugins.setBounds(new Rectangle(58, 110, 303, 60));
     117            aboutPlugins.setBounds(new Rectangle(58, 135, 303, 60));
    132118            aboutPlugins.setText("<HTML><BODY>SeaMark Editor" +
    133119                        "<BR>SeaLight Editor" +
     
    136122           
    137123            aboutLicense = new JLabel();
    138             aboutLicense.setBounds(new Rectangle(5, 225, 390, 70));
     124            aboutLicense.setBounds(new Rectangle(5, 185, 390, 70));
    139125            aboutLicense.setText("<HTML><BODY><U>SeaMap Editor license</U>" +
    140126                        "<BR>SeaMapEditor, and all its integral parts, are released under" +
     
    142128
    143129            aboutGPLV3Text = new JLabel();
    144             aboutGPLV3Text.setBounds(new Rectangle(3, 280, 246, 40));
     130            aboutGPLV3Text.setBounds(new Rectangle(5, 235, 246, 40));
    145131            aboutGPLV3Text.setText("The license v3 is accessible here:");
    146132
    147133            aboutGPLV3Link = new JLabel();
    148             aboutGPLV3Link.setBounds(new Rectangle(5, 300, 370, 28));
    149             aboutGPLV3Link.setText("http://www.gnu.org/licenses/gpl.html");
     134            aboutGPLV3Link.setBounds(new Rectangle(5, 255, 370, 28));
     135            aboutGPLV3Link.setText("  http://www.gnu.org/licenses/gpl.html");
    150136
     137            aboutGPLV2Text = new JLabel();
     138            aboutGPLV2Text.setBounds(new Rectangle(5, 275, 363, 28));
     139            aboutGPLV2Text.setText("The GPL v2 is accessible here:");
     140
     141            aboutGPLV2Link = new JLabel();
     142            aboutGPLV2Link.setBounds(new Rectangle(5, 290, 391, 31));
     143            aboutGPLV2Link.setText("  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html");
    151144           
    152145            jPanel = new JPanel();
     
    163156            jPanel.add(aboutGPLV3Text, null);
    164157            jPanel.add(aboutGPLV3Link, null);
     158            jPanel.add(aboutGPLV2Text, null);
     159            jPanel.add(aboutGPLV2Link, null);
     160            jPanel.add(jLabel, null);
    165161        }
    166162        return jPanel;
     
    172168        @Override
    173169        public ImageIcon getIcon() {
    174                 return null;
     170                return new ImageIcon(getClass().getResource("/images/Smed.png"));
    175171        }
    176172
Note: See TracChangeset for help on using the changeset viewer.