01: /*
02: * JFrameSample.java
03: *
04: * Created on September 20, 2005, 9:46 AM
05: */
06:
07: package sample1;
08:
09: /**
10: *
11: * @author Jiri.Skrivanek@sun.com
12: */
13: public class JFrameSample extends javax.swing.JFrame {
14:
15: /** Creates new form JFrameSample */
16: public JFrameSample() {
17: initComponents();
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 Form Editor.
24: */
25: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
26: private void initComponents() {
27:
28: setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
29: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
30: getContentPane());
31: getContentPane().setLayout(layout);
32: layout.setHorizontalGroup(layout.createParallelGroup(
33: org.jdesktop.layout.GroupLayout.LEADING).add(0, 400,
34: Short.MAX_VALUE));
35: layout.setVerticalGroup(layout.createParallelGroup(
36: org.jdesktop.layout.GroupLayout.LEADING).add(0, 300,
37: Short.MAX_VALUE));
38: pack();
39: }
40:
41: // </editor-fold>//GEN-END:initComponents
42:
43: /**
44: * @param args the command line arguments
45: */
46: public static void main(String args[]) {
47: java.awt.EventQueue.invokeLater(new Runnable() {
48: public void run() {
49: new JFrameSample().setVisible(true);
50: }
51: });
52: }
53:
54: // Variables declaration - do not modify//GEN-BEGIN:variables
55: // End of variables declaration//GEN-END:variables
56:
57: }
|