Changeset 23498 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-10-07T21:56:26+02:00 (14 years ago)
- 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 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" New release" />33 <property name="commit.message" value="some more information added" /> 34 34 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 35 35 <property name="plugin.main.version" value="3329" /> -
applications/editors/josm/plugins/smed/plugs/smed_about/src/smed_about/SmedAbout.java
r23491 r23498 2 2 3 3 import javax.swing.ImageIcon; 4 import javax.swing.JApplet;5 4 import javax.swing.JComponent; 6 5 import javax.swing.JEditorPane; … … 9 8 import smed.plug.ifc.SmedPluginManager; 10 9 import javax.swing.JPanel; 11 12 import java.applet.Applet;13 import java.awt.Color;14 import java.awt.Cursor;15 import java.awt.Desktop;16 10 import java.awt.Dimension; 17 import java.awt.Graphics;18 19 11 import 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 25 12 import 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;38 13 39 14 public class SmedAbout implements SmedPluggable { … … 61 36 62 37 private JLabel aboutGPLV3Link = null; 38 39 private JLabel aboutGPLV2Text = null; 40 41 private JLabel aboutGPLV2Link = null; 42 43 private JLabel jLabel = null; 63 44 64 45 @Override … … 103 84 private JPanel getJPanel() { 104 85 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(""); 105 90 aboutCopyright = new JLabel(); 106 aboutCopyright.setBounds(new Rectangle(125, 0, 245, 5 4));91 aboutCopyright.setBounds(new Rectangle(125, 0, 245, 55)); 107 92 aboutCopyright.setText("<HTML><BODY>Copyright (c) 2009 / 2010<BR><center>by" + 108 93 "<BR>Werner König & Malcolm Herring</BODY></HTML>"); 109 94 110 95 aboutAuthors = new JLabel(); 111 aboutAuthors.setBounds(new Rectangle(30, 40, 340, 30)); 96 aboutAuthors.setBounds(new Rectangle(30, 50 97 , 340, 30)); 112 98 aboutAuthors.setText("Authors: Werner König and Malclom Herring"); 113 99 114 100 aboutVersion = new JLabel(); 115 aboutVersion.setBounds(new Rectangle(30, 50, 340, 30));101 aboutVersion.setBounds(new Rectangle(30, 65, 340, 30)); 116 102 aboutVersion.setText("Version: 23479 Date: 05.10.2010"); 117 103 118 104 aboutDescription = new JLabel(); 119 aboutDescription.setBounds(new Rectangle(30, 60, 340, 30));105 aboutDescription.setBounds(new Rectangle(30, 80, 340, 30)); 120 106 aboutDescription.setText("Description: "); 121 107 122 108 aboutSmed = new JLabel(); 123 aboutSmed.setBounds(new Rectangle(100, 70, 265, 30));109 aboutSmed.setBounds(new Rectangle(100, 95, 265, 30)); 124 110 aboutSmed.setText("SeaMap Editor to map marks & lights"); 125 111 126 112 aboutAvailable = new JLabel(); 127 aboutAvailable.setBounds(new Rectangle(30, 90, 141, 27));113 aboutAvailable.setBounds(new Rectangle(30, 115, 141, 27)); 128 114 aboutAvailable.setText("available plugins:"); 129 115 130 116 aboutPlugins = new JLabel(); 131 aboutPlugins.setBounds(new Rectangle(58, 1 10, 303, 60));117 aboutPlugins.setBounds(new Rectangle(58, 135, 303, 60)); 132 118 aboutPlugins.setText("<HTML><BODY>SeaMark Editor" + 133 119 "<BR>SeaLight Editor" + … … 136 122 137 123 aboutLicense = new JLabel(); 138 aboutLicense.setBounds(new Rectangle(5, 225, 390, 70));124 aboutLicense.setBounds(new Rectangle(5, 185, 390, 70)); 139 125 aboutLicense.setText("<HTML><BODY><U>SeaMap Editor license</U>" + 140 126 "<BR>SeaMapEditor, and all its integral parts, are released under" + … … 142 128 143 129 aboutGPLV3Text = new JLabel(); 144 aboutGPLV3Text.setBounds(new Rectangle( 3, 280, 246, 40));130 aboutGPLV3Text.setBounds(new Rectangle(5, 235, 246, 40)); 145 131 aboutGPLV3Text.setText("The license v3 is accessible here:"); 146 132 147 133 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"); 150 136 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"); 151 144 152 145 jPanel = new JPanel(); … … 163 156 jPanel.add(aboutGPLV3Text, null); 164 157 jPanel.add(aboutGPLV3Link, null); 158 jPanel.add(aboutGPLV2Text, null); 159 jPanel.add(aboutGPLV2Link, null); 160 jPanel.add(jLabel, null); 165 161 } 166 162 return jPanel; … … 172 168 @Override 173 169 public ImageIcon getIcon() { 174 return n ull;170 return new ImageIcon(getClass().getResource("/images/Smed.png")); 175 171 } 176 172
Note:
See TracChangeset
for help on using the changeset viewer.