1 6 7 package org.netbeans.modules.form.layoutdesign; 8 9 13 public class ALT_Inserting01 extends javax.swing.JFrame { 14 15 16 public ALT_Inserting01() { 17 initComponents(); 18 } 19 20 25 private void initComponents() { 27 jLabel1 = new javax.swing.JLabel (); 28 jLabel2 = new javax.swing.JLabel (); 29 jLabel3 = new javax.swing.JLabel (); 30 jTextField1 = new javax.swing.JTextField (); 31 jTextField2 = new javax.swing.JTextField (); 32 jTextField3 = new javax.swing.JTextField (); 33 jButton1 = new javax.swing.JButton (); 34 jButton2 = new javax.swing.JButton (); 35 jButton3 = new javax.swing.JButton (); 36 jLabel4 = new javax.swing.JLabel (); 37 38 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 39 jLabel1.setText("jLabel1jLabel1jLabel1"); 40 41 jLabel2.setText("jLabel2jLabel2"); 42 43 jLabel3.setText("jLabel3"); 44 45 jTextField1.setText("jTextField1"); 46 47 jTextField2.setText("jTextField2"); 48 49 jTextField3.setText("jTextField3"); 50 51 jButton1.setText("jButton1"); 52 53 jButton2.setText("jButton2"); 54 55 jButton3.setText("jButton3"); 56 57 jLabel4.setText("jLabel4"); 58 59 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); 60 getContentPane().setLayout(layout); 61 layout.setHorizontalGroup( 62 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 63 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 64 .addContainerGap() 65 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 66 .add(jLabel4) 67 .add(jLabel1) 68 .add(jLabel2) 69 .add(jLabel3)) 70 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 71 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 72 .add(jButton2) 73 .add(jButton3)) 74 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 75 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 76 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 77 .add(jButton1) 78 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 79 .add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)) 80 .add(jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE) 81 .add(jTextField3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)) 82 .add(32, 32, 32)) 83 ); 84 layout.setVerticalGroup( 85 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 86 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 87 .addContainerGap() 88 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 89 .add(jLabel1) 90 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 91 .add(jButton1)) 92 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 93 .add(jLabel4) 94 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 95 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 96 .add(jLabel2) 97 .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 98 .add(jButton2)) 99 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 100 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 101 .add(jLabel3) 102 .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 103 .add(jButton3)) 104 .addContainerGap(188, Short.MAX_VALUE)) 105 ); 106 pack(); 107 } 109 112 public static void main(String args[]) { 113 java.awt.EventQueue.invokeLater(new Runnable () { 114 public void run() { 115 new ALT_Inserting01().setVisible(true); 116 } 117 }); 118 } 119 120 private javax.swing.JButton jButton1; 122 private javax.swing.JButton jButton2; 123 private javax.swing.JButton jButton3; 124 private javax.swing.JLabel jLabel1; 125 private javax.swing.JLabel jLabel2; 126 private javax.swing.JLabel jLabel3; 127 private javax.swing.JLabel jLabel4; 128 private javax.swing.JTextField jTextField1; 129 private javax.swing.JTextField jTextField2; 130 private javax.swing.JTextField jTextField3; 131 133 } 134 | Popular Tags |