Subversion Repositories wimsdev

Rev

Rev 3662 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /*
  2.     Sketch Elements: Chemistry molecular diagram drawing tool.
  3.    
  4.     (c) 2005 Dr. Alex M. Clark
  5.    
  6.     Released as GNUware, under the Gnu Public License (GPL)
  7.    
  8.     See www.gnu.org for details.
  9. */
  10.  
  11. package WIMSchem;
  12.  
  13. import java.io.*;
  14. import java.awt.*;
  15. import java.awt.event.*;
  16. import java.util.*;
  17. import javax.swing.*;
  18.  
  19. public class LaunchApplet extends JApplet implements ActionListener
  20. {
  21.     JButton openbutton;
  22.  
  23.     public void init()
  24.     {
  25.         openbutton=new JButton("Open WIMSchem");
  26.         add(openbutton);
  27.         openbutton.addActionListener(this);
  28.     }
  29.    
  30.     public void actionPerformed(ActionEvent e)
  31.     {
  32.         if (e.getSource()==openbutton)
  33.         {
  34.             MainWindow mw=new MainWindow(null,false);
  35.             mw.setVisible(true);
  36.             System.out.println("foo");
  37.         }
  38.     }
  39.  
  40.     public String getAppletInfo()
  41.     {
  42.         return "WIMSchem: Applet version of chemistry\nmolecular diagram drawing tool.";
  43.     }
  44. }
  45.