1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_Bug70904 extends javax.swing.JFrame { 5 6 7 public ALT_Bug70904() { 8 initComponents(); 9 } 10 11 16 private void initComponents() { 18 jLabel1 = new javax.swing.JLabel (); 19 jTextField1 = new javax.swing.JTextField (); 20 21 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 22 jLabel1.setText("jLabel1"); 23 24 jTextField1.setText("jTextField1"); 25 26 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); 27 getContentPane().setLayout(layout); 28 layout.setHorizontalGroup( 29 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 30 .add(layout.createSequentialGroup() 31 .add(jLabel1) 32 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 33 .add(jTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 99, Short.MAX_VALUE)) 34 ); 35 layout.setVerticalGroup( 36 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 37 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 38 .add(jLabel1) 39 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 40 ); 41 pack(); 42 } 44 47 public static void main(String args[]) { 48 java.awt.EventQueue.invokeLater(new Runnable () { 49 public void run() { 50 new ALT_Bug70904().setVisible(true); 51 } 52 }); 53 } 54 55 private javax.swing.JLabel jLabel1; 57 private javax.swing.JTextField jTextField1; 58 60 } 61 | Popular Tags |