1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_ParallelPosition16 extends javax.swing.JFrame { 5 6 7 public ALT_ParallelPosition16() { 8 initComponents(); 9 } 10 11 16 private void initComponents() { 18 jToggleButton1 = new javax.swing.JToggleButton (); 19 jLabel1 = new javax.swing.JLabel (); 20 jButton1 = new javax.swing.JButton (); 21 jButton2 = new javax.swing.JButton (); 22 23 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 24 jToggleButton1.setText("jToggleButton1jToggleButton1"); 25 26 jLabel1.setText("jLabel1"); 27 28 jButton1.setText("jButton1"); 29 30 jButton2.setText("jButton2"); 31 32 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); 33 getContentPane().setLayout(layout); 34 layout.setHorizontalGroup( 35 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 36 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 37 .addContainerGap() 38 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 39 .add(jToggleButton1) 40 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 41 .add(jLabel1) 42 .add(100, 100, 100) 43 .add(jButton1) 44 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 45 .add(jButton2))) 46 .addContainerGap(100, Short.MAX_VALUE)) 47 ); 48 layout.setVerticalGroup( 49 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 50 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 51 .addContainerGap() 52 .add(jToggleButton1) 53 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 54 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 55 .add(jLabel1) 56 .add(jButton2) 57 .add(jButton1)) 58 .addContainerGap(237, Short.MAX_VALUE)) 59 ); 60 pack(); 61 } 63 66 public static void main(String args[]) { 67 java.awt.EventQueue.invokeLater(new Runnable () { 68 public void run() { 69 new ALT_ParallelPosition16().setVisible(true); 70 } 71 }); 72 } 73 74 private javax.swing.JButton jButton1; 76 private javax.swing.JButton jButton2; 77 private javax.swing.JLabel jLabel1; 78 private javax.swing.JToggleButton jToggleButton1; 79 81 } 82 | Popular Tags |