Rev 3662 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3662 | schaersvoo | 1 | /* |
7246 | schaersvoo | 2 | Sketch Elements: Chemistry molecular diagram drawing tool. |
3662 | schaersvoo | 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.*; |
||
7246 | schaersvoo | 18 | |
3662 | schaersvoo | 19 | public class LaunchApplet extends JApplet implements ActionListener |
20 | { |
||
21 | JButton openbutton; |
||
22 | |||
23 | public void init() |
||
24 | { |
||
7246 | schaersvoo | 25 | openbutton=new JButton("Open WIMSchem"); |
3662 | schaersvoo | 26 | add(openbutton); |
27 | openbutton.addActionListener(this); |
||
28 | } |
||
29 | |||
30 | public void actionPerformed(ActionEvent e) |
||
31 | { |
||
32 | if (e.getSource()==openbutton) |
||
33 | { |
||
7246 | schaersvoo | 34 | MainWindow mw=new MainWindow(null,false); |
3662 | schaersvoo | 35 | mw.setVisible(true); |
36 | System.out.println("foo"); |
||
37 | } |
||
38 | } |
||
39 | |||
40 | public String getAppletInfo() |
||
41 | { |
||
7246 | schaersvoo | 42 | return "WIMSchem: Applet version of chemistry\nmolecular diagram drawing tool."; |
3662 | schaersvoo | 43 | } |
44 | } |