summaryrefslogtreecommitdiff
path: root/cad/src/experimental/CoNTub/nt.java
blob: 0223f73ca745695702323c3cc8ab68b6b3a03326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import javax.swing.ImageIcon;

public class nt extends Applet
{
	int i, j;
	public JTabbedPane multipanel;
	public P1 panel1;
	public P15 panel15;
	public P2 panel2;
	public P3 panel3;
	public P35 panel35;

	public void init ()
	{
		setLayout (new BorderLayout ());
		multipanel = new JTabbedPane (SwingConstants.TOP);
		add ("Center", multipanel);
		P1 panel1 = new P1 ();
		P15 panel15 = new P15 ();
		P2 panel2 = new P2 ();
		P3 panel3 = new P3 ();
		P35 panel35 = new P35 (panel2.molT (), panel1.molT (),
				       panel15.molT ());

//ImageIcon I1=new ImageIcon("2T.gif");
//ImageIcon I2=new ImageIcon("2T.gif");
//ImageIcon I3=new ImageIcon("help.gif");
//ImageIcon I4=new ImageIcon("INFO.gif");


		  multipanel.addTab ("NT HeteroJunction", null, panel2, "HeteroJunction Generation");
//multipanel.addTab("SWNT" ,null,panel1,"Single Walled Nanotube Generation");
		  multipanel.addTab ("SWNT", null, panel1, "Single Walled Nanotube Generation");
		  multipanel.addTab ("MWNT", null, panel15, "Multi-Walled Nanotube Generation");
		  multipanel.addTab ("OUTPUT", null, panel35, "Text output in PDB format");
		  multipanel.addTab ("Help", null, panel3, "Short Help");

		  multipanel.setSelectedIndex (0);


	}
	public void destroy ()
	{
	}			//Metodos de destruccion, parada, conienzo
	public void start ()
	{
	}
	public void stop ()
	{
	}
	public void processEvent (AWTEvent e)
	{
		if (e.getID () == Event.WINDOW_DESTROY) {
			System.exit (0);
		}
	}


}