Ignore:
Timestamp:
2010-10-07T22:34:17+02:00 (14 years ago)
Author:
postfix
Message:

'added some security queries'

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  
    3131
    3232        <!-- enter the SVN commit message -->
    33         <property name="commit.message" value="images added" />
     33        <property name="commit.message" value="added some security queries" />
    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

    r23498 r23500  
    33import javax.swing.ImageIcon;
    44import javax.swing.JComponent;
    5 import javax.swing.JEditorPane;
    65
    76import smed.plug.ifc.SmedPluggable;
     
    1110import javax.swing.JLabel;
    1211import java.awt.Rectangle;
     12import java.net.URL;
    1313
    1414public class SmedAbout implements SmedPluggable {
     
    1616        public SmedPluginManager manager = null;
    1717       
    18         private boolean visible = true;
    1918        private int index = -1;
    2019        private String msg = "";
     
    3231
    3332        private JLabel aboutGPLV3Text = null;
    34 
    35         private JEditorPane jEditorPane = null;
    3633
    3734        private JLabel aboutGPLV3Link = null;
     
    8481    private JPanel getJPanel() {
    8582        if (jPanel == null) {
    86             jLabel = new JLabel();
     83            URL url = getClass().getResource("/images/oseam_56x56.png");
     84           
     85                jLabel = new JLabel();
    8786            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));
    8988            jLabel.setText("");
     89           
    9090            aboutCopyright = new JLabel();
    9191            aboutCopyright.setBounds(new Rectangle(125, 0, 245, 55));
     
    168168        @Override
    169169        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);
    171174        }
    172175
Note: See TracChangeset for help on using the changeset viewer.