Changeset 23500 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-10-07T22:34:17+02:00 (15 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
r23499 r23500 31 31 32 32 <!-- enter the SVN commit message --> 33 <property name="commit.message" value=" images added" />33 <property name="commit.message" value="added some security queries" /> 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
r23498 r23500 3 3 import javax.swing.ImageIcon; 4 4 import javax.swing.JComponent; 5 import javax.swing.JEditorPane;6 5 7 6 import smed.plug.ifc.SmedPluggable; … … 11 10 import javax.swing.JLabel; 12 11 import java.awt.Rectangle; 12 import java.net.URL; 13 13 14 14 public class SmedAbout implements SmedPluggable { … … 16 16 public SmedPluginManager manager = null; 17 17 18 private boolean visible = true;19 18 private int index = -1; 20 19 private String msg = ""; … … 32 31 33 32 private JLabel aboutGPLV3Text = null; 34 35 private JEditorPane jEditorPane = null;36 33 37 34 private JLabel aboutGPLV3Link = null; … … 84 81 private JPanel getJPanel() { 85 82 if (jPanel == null) { 86 jLabel = new JLabel(); 83 URL url = getClass().getResource("/images/oseam_56x56.png"); 84 85 jLabel = new JLabel(); 87 86 jLabel.setBounds(new Rectangle(45, 0, 58, 58)); 88 jLabel.setIcon(new ImageIcon( getClass().getResource("/images/oseam_56x56.png")));87 if(url != null) jLabel.setIcon(new ImageIcon(url)); 89 88 jLabel.setText(""); 89 90 90 aboutCopyright = new JLabel(); 91 91 aboutCopyright.setBounds(new Rectangle(125, 0, 245, 55)); … … 168 168 @Override 169 169 public ImageIcon getIcon() { 170 return new ImageIcon(getClass().getResource("/images/Smed.png")); 170 URL url = getClass().getResource("/images/Smed.png"); 171 172 if(url == null) return null; 173 else return new ImageIcon(url); 171 174 } 172 175
Note:
See TracChangeset
for help on using the changeset viewer.