01: /*
02: * CustomComponentForm.java
03: *
04: * Created on August 8, 2007, 11:14 AM
05: */
06:
07: package data;
08:
09: /**
10: *
11: * @author jirka
12: */
13: public class CustomComponentForm extends javax.swing.JFrame {
14:
15: /** Creates new form CustomComponentForm */
16: public CustomComponentForm() {
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: customButton1 = new data.components.CustomButton();
29: jButton1 = data.components.CustomButton.createButton();
30:
31: setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
32:
33: jButton1.setText("jButton1");
34:
35: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
36: getContentPane());
37: getContentPane().setLayout(layout);
38: layout
39: .setHorizontalGroup(layout
40: .createParallelGroup(
41: org.jdesktop.layout.GroupLayout.LEADING)
42: .add(
43: layout
44: .createSequentialGroup()
45: .addContainerGap()
46: .add(
47: layout
48: .createParallelGroup(
49: org.jdesktop.layout.GroupLayout.LEADING)
50: .add(
51: customButton1,
52: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
53: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
54: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
55: .add(jButton1))
56: .addContainerGap(274,
57: Short.MAX_VALUE)));
58: layout.setVerticalGroup(layout.createParallelGroup(
59: org.jdesktop.layout.GroupLayout.LEADING).add(
60: layout.createSequentialGroup().addContainerGap().add(
61: customButton1,
62: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
63: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
64: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
65: .add(44, 44, 44).add(jButton1).addContainerGap(
66: 196, Short.MAX_VALUE)));
67:
68: pack();
69: }// </editor-fold>//GEN-END:initComponents
70:
71: /**
72: * @param args the command line arguments
73: */
74: public static void main(String args[]) {
75: java.awt.EventQueue.invokeLater(new Runnable() {
76: public void run() {
77: new CustomComponentForm().setVisible(true);
78: }
79: });
80: }
81:
82: // Variables declaration - do not modify//GEN-BEGIN:variables
83: private data.components.CustomButton customButton1;
84: private javax.swing.JButton jButton1;
85: // End of variables declaration//GEN-END:variables
86:
87: }
|