1 6 7 package org.netbeans.modules.form.layoutdesign; 8 9 13 public class ALT_Bug66431_3 extends javax.swing.JFrame { 14 15 16 public ALT_Bug66431_3() { 17 initComponents(); 18 } 19 20 25 private void initComponents() { 27 jButton1 = new javax.swing.JButton (); 28 jButton2 = new javax.swing.JButton (); 29 jScrollPane1 = new javax.swing.JScrollPane (); 30 jTextArea1 = new javax.swing.JTextArea (); 31 32 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 33 jButton1.setText("jButton1"); 34 35 jButton2.setText("jButton2"); 36 37 jTextArea1.setColumns(20); 38 jTextArea1.setRows(5); 39 jScrollPane1.setViewportView(jTextArea1); 40 41 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); 42 getContentPane().setLayout(layout); 43 layout.setHorizontalGroup( 44 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 45 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 46 .addContainerGap() 47 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 48 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE) 49 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 50 .add(jButton1) 51 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 52 .add(jButton2))) 53 .addContainerGap()) 54 ); 55 layout.setVerticalGroup( 56 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 57 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 58 .addContainerGap() 59 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 60 .add(jButton1) 61 .add(jButton2)) 62 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 63 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 196, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 64 .addContainerGap(91, Short.MAX_VALUE)) 65 ); 66 pack(); 67 } 69 72 public static void main(String args[]) { 73 java.awt.EventQueue.invokeLater(new Runnable () { 74 public void run() { 75 new ALT_Bug66431_3().setVisible(true); 76 } 77 }); 78 } 79 80 private javax.swing.JButton jButton1; 82 private javax.swing.JButton jButton2; 83 private javax.swing.JScrollPane jScrollPane1; 84 private javax.swing.JTextArea jTextArea1; 85 87 } 88 | Popular Tags |