01: package DataLoaderTests.DataObjectTest.data.Package;/*
02: * SwingFormObject.java
03: *
04: * Created on December 20, 1999, 12:19 PM
05: */
06:
07: /**
08: *
09: * @author pknakal
10: * @version
11: */
12: public class SwingFormObject extends javax.swing.JFrame {
13:
14: /** Creates new form SwingFormObject */
15: public SwingFormObject() {
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: jButton1 = new javax.swing.JButton();
27: jLabel1 = new javax.swing.JLabel();
28: addWindowListener(new java.awt.event.WindowAdapter() {
29: public void windowClosing(java.awt.event.WindowEvent evt) {
30: exitForm(evt);
31: }
32: });
33:
34: jButton1.setText("Close");
35: jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
36: public void mouseClicked(java.awt.event.MouseEvent evt) {
37: jButton1MouseClicked(evt);
38: }
39: });
40:
41: getContentPane().add(jButton1, java.awt.BorderLayout.SOUTH);
42:
43: jLabel1.setText("dataObjectsInPkg/SwingFormObject");
44: jLabel1
45: .setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
46:
47: getContentPane().add(jLabel1, java.awt.BorderLayout.CENTER);
48:
49: }//GEN-END:initComponents
50:
51: private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
52: this .dispose();
53: this .exitForm(null);
54: }//GEN-LAST:event_jButton1MouseClicked
55:
56: /** Exit the Application */
57: private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
58: System.exit(0);
59: }//GEN-LAST:event_exitForm
60:
61: /**
62: * @param args the command line arguments
63: */
64: public static void main(String args[]) {
65: new SwingFormObject().show();
66: }
67:
68: // Variables declaration - do not modify//GEN-BEGIN:variables
69: private javax.swing.JButton jButton1;
70: private javax.swing.JLabel jLabel1;
71: // End of variables declaration//GEN-END:variables
72:
73: }
|