01: package DataLoaderTests.DataObjectTest.data.Package;/*
02: * AWTFormObject.java
03: *
04: * Created on December 20, 1999, 12:17 PM
05: */
06:
07: /**
08: *
09: * @author pknakal
10: * @version
11: */
12: public class AWTFormObject extends java.awt.Frame {
13:
14: /** Creates new form AWTFormObject */
15: public AWTFormObject() {
16: initComponents();
17: pack();
18: }
19:
20: /** This method is called from within the constructor to
21: * initialize the form.
22: * WARNING: Do NOT modify this code. The content of this method is
23: * always regenerated by the FormEditor.
24: */
25: private void initComponents() {//GEN-BEGIN:initComponents
26: button1 = new java.awt.Button();
27: label1 = new java.awt.Label();
28: addWindowListener(new java.awt.event.WindowAdapter() {
29: public void windowClosing(java.awt.event.WindowEvent evt) {
30: exitForm(evt);
31: }
32: });
33:
34: button1.setLabel("Close");
35: button1.addMouseListener(new java.awt.event.MouseAdapter() {
36: public void mouseClicked(java.awt.event.MouseEvent evt) {
37: button1MouseClicked(evt);
38: }
39: });
40:
41: add(button1, java.awt.BorderLayout.SOUTH);
42:
43: label1.setText("dataObjectsInPkg/AWTFormObject");
44: label1.setAlignment(java.awt.Label.CENTER);
45:
46: add(label1, java.awt.BorderLayout.CENTER);
47:
48: }//GEN-END:initComponents
49:
50: private void button1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_button1MouseClicked
51: this .dispose();
52: this .exitForm(null);
53: }//GEN-LAST:event_button1MouseClicked
54:
55: /** Exit the Application */
56: private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
57: System.exit(0);
58: }//GEN-LAST:event_exitForm
59:
60: /**
61: * @param args the command line arguments
62: */
63: public static void main(String args[]) {
64: new AWTFormObject().show();
65: }
66:
67: // Variables declaration - do not modify//GEN-BEGIN:variables
68: private java.awt.Button button1;
69: private java.awt.Label label1;
70: // End of variables declaration//GEN-END:variables
71:
72: }
|