Changeset 23209 in osm for applications/editors/josm/plugins/smed_about
- Timestamp:
- 2010-09-16T11:38:18+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed_about/src/smed_about/SmedAbout.java
r23200 r23209 12 12 public class SmedAbout implements SmedPluggable{ 13 13 14 15 16 17 18 19 20 21 22 14 private JPanel jPanel = null; // @jve:decl-index=0:visual-constraint="43,24" 15 private JLabel jLabel = null; 16 private JLabel jLabel1 = null; 17 private JLabel jLabel2 = null; 18 @Override 19 public boolean start() { 20 // TODO Auto-generated method stub 21 return false; 22 } 23 23 24 25 26 27 28 24 @Override 25 public boolean stop() { 26 // TODO Auto-generated method stub 27 return false; 28 } 29 29 30 31 32 33 30 @Override 31 public String getName() { 32 return "About"; 33 } 34 34 35 @Override 36 public void setPluginManager(SmedPluginManager manager) { 37 // TODO Auto-generated method stub 38 39 } 35 @Override 36 public void setPluginManager(SmedPluginManager manager) { 37 // TODO Auto-generated method stub 40 38 41 @Override 42 public String getInfo() { 39 } 43 40 44 return "something about the programm"; 45 } 41 @Override 42 public String getInfo() { 46 43 47 @Override 48 public JComponent getComponent() { 44 return "something about the programm"; 45 } 49 46 50 return getJPanel(); 51 } 47 @Override 48 public JComponent getComponent() { 52 49 53 54 /** 55 * This method initializes jPanel 56 * 57 * @return javax.swing.JPanel 58 */ 59 private JPanel getJPanel() { 60 if (jPanel == null) { 61 jLabel2 = new JLabel(); 62 jLabel2.setBounds(new Rectangle(30, 90, 340, 30)); 63 jLabel2.setText("Description:"); 64 jLabel1 = new JLabel(); 65 jLabel1.setBounds(new Rectangle(30, 55, 340, 30)); 66 jLabel1.setText("Version: Date:"); 67 jLabel = new JLabel(); 68 jLabel.setBounds(new Rectangle(30, 20, 340, 30)); 69 jLabel.setText("Authors: Werner König and Malclom Herring"); 70 jPanel = new JPanel(); 71 jPanel.setLayout(null); 72 jPanel.setSize(new Dimension(400, 300)); 73 jPanel.add(jLabel, null); 74 jPanel.add(jLabel1, null); 75 jPanel.add(jLabel2, null); 76 } 77 return jPanel; 78 } 50 return getJPanel(); 51 } 52 53 54 /** 55 * This method initializes jPanel 56 * 57 * @return javax.swing.JPanel 58 */ 59 private JPanel getJPanel() { 60 if (jPanel == null) { 61 jLabel2 = new JLabel(); 62 jLabel2.setBounds(new Rectangle(30, 90, 340, 30)); 63 jLabel2.setText("Description:"); 64 jLabel1 = new JLabel(); 65 jLabel1.setBounds(new Rectangle(30, 55, 340, 30)); 66 jLabel1.setText("Version: Date:"); 67 jLabel = new JLabel(); 68 jLabel.setBounds(new Rectangle(30, 20, 340, 30)); 69 jLabel.setText("Authors: Werner König and Malclom Herring"); 70 jPanel = new JPanel(); 71 jPanel.setLayout(null); 72 jPanel.setSize(new Dimension(400, 300)); 73 jPanel.add(jLabel, null); 74 jPanel.add(jLabel1, null); 75 jPanel.add(jLabel2, null); 76 } 77 return jPanel; 78 } 79 79 80 80 }
Note:
See TracChangeset
for help on using the changeset viewer.