1 package org.netbeans.modules.form.layoutdesign; 2 3 public class ALT_Bug66919 extends javax.swing.JFrame { 4 5 6 public ALT_Bug66919() { 7 initComponents(); 8 } 9 10 15 private void initComponents() { 17 add = new javax.swing.JButton (); 18 jPanel1 = new javax.swing.JPanel (); 19 save = new javax.swing.JButton (); 20 delete = new javax.swing.JButton (); 21 jPanel2 = new javax.swing.JPanel (); 22 23 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 24 add.setText("New Record"); 25 26 jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Perform Venue")); 27 org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); 28 jPanel1.setLayout(jPanel1Layout); 29 jPanel1Layout.setHorizontalGroup( 30 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 31 .add(0, 274, Short.MAX_VALUE) 32 ); 33 jPanel1Layout.setVerticalGroup( 34 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 35 .add(0, 157, Short.MAX_VALUE) 36 ); 37 38 save.setText("Save"); 39 40 delete.setText("Delete"); 41 42 jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Perform Detail")); 43 org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2); 44 jPanel2.setLayout(jPanel2Layout); 45 jPanel2Layout.setHorizontalGroup( 46 jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 47 .add(0, 336, Short.MAX_VALUE) 48 ); 49 jPanel2Layout.setVerticalGroup( 50 jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 51 .add(0, 138, Short.MAX_VALUE) 52 ); 53 54 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); 55 getContentPane().setLayout(layout); 56 layout.setHorizontalGroup( 57 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 58 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 59 .addContainerGap() 60 .add(add) 61 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 62 .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 63 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 6, Short.MAX_VALUE) 64 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 65 .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() 66 .add(save, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 114, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 67 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 116, Short.MAX_VALUE) 68 .add(delete, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 137, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 69 .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 70 .addContainerGap()) 71 ); 72 layout.setVerticalGroup( 73 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 74 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 75 .addContainerGap() 76 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 77 .add(jPanel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 78 .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 79 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 80 .add(162, 162, 162) 81 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 82 .add(delete) 83 .add(save))) 84 .add(add)) 85 .addContainerGap(285, Short.MAX_VALUE)) 86 ); 87 pack(); 88 } 90 93 public static void main(String args[]) { 94 java.awt.EventQueue.invokeLater(new Runnable () { 95 public void run() { 96 new ALT_Bug66919().setVisible(true); 97 } 98 }); 99 } 100 101 private javax.swing.JButton add; 103 private javax.swing.JButton delete; 104 private javax.swing.JPanel jPanel1; 105 private javax.swing.JPanel jPanel2; 106 private javax.swing.JButton save; 107 109 } 110 111 112 | Popular Tags |