Changeset 23486 in osm for applications/editors/josm/plugins/smed/plugs/smed_about
- Timestamp:
- 2010-10-06T23:51:08+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/smed_about/src/smed_about/SmedAbout.java
r23445 r23486 2 2 3 3 import javax.swing.ImageIcon; 4 import javax.swing.JApplet; 4 5 import javax.swing.JComponent; 6 import javax.swing.JEditorPane; 5 7 6 8 import smed.plug.ifc.SmedPluggable; 7 9 import smed.plug.ifc.SmedPluginManager; 8 10 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; 9 16 import java.awt.Dimension; 17 import java.awt.Graphics; 18 10 19 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 11 25 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; 12 38 13 public class SmedAbout implements SmedPluggable {39 public class SmedAbout implements SmedPluggable { 14 40 15 41 public SmedPluginManager manager = null; … … 20 46 21 47 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 25 64 @Override 26 65 public boolean start() { … … 64 103 private JPanel getJPanel() { 65 104 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 75 152 jPanel = new JPanel(); 76 153 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); 81 165 } 82 166 return jPanel; 83 167 } 84 168 85 169 @Override 86 170 public String getFileName() { return "smed_about.jar"; }
Note:
See TracChangeset
for help on using the changeset viewer.