1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_ParallelPosition07 extends javax.swing.JFrame { 5 6 7 public ALT_ParallelPosition07() { 8 initComponents(); 9 } 10 11 16 private void initComponents() { 18 jScrollPane1 = new javax.swing.JScrollPane (); 19 jTextArea1 = new javax.swing.JTextArea (); 20 jToggleButton1 = new javax.swing.JToggleButton (); 21 jScrollPane2 = new javax.swing.JScrollPane (); 22 jTextArea2 = new javax.swing.JTextArea (); 23 jLabel1 = new javax.swing.JLabel (); 24 jLabel2 = new javax.swing.JLabel (); 25 26 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 27 jTextArea1.setColumns(20); 28 jTextArea1.setRows(5); 29 jScrollPane1.setViewportView(jTextArea1); 30 31 jToggleButton1.setText("jToggleButton1"); 32 33 jTextArea2.setColumns(20); 34 jTextArea2.setRows(5); 35 jScrollPane2.setViewportView(jTextArea2); 36 37 jLabel1.setText("jLabel1"); 38 39 jLabel2.setText("jLabel2"); 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(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 48 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 49 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false) 50 .add(org.jdesktop.layout.GroupLayout.TRAILING, jToggleButton1) 51 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 52 .add(jLabel1) 53 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 54 .add(jLabel2))) 55 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 56 .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 57 .addContainerGap(65, Short.MAX_VALUE)) 58 ); 59 layout.setVerticalGroup( 60 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 61 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 62 .addContainerGap() 63 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 64 .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 65 .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup() 66 .add(jToggleButton1) 67 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 68 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 69 .add(jLabel1) 70 .add(jLabel2))) 71 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 72 .addContainerGap(225, Short.MAX_VALUE)) 73 ); 74 pack(); 75 } 77 80 public static void main(String args[]) { 81 java.awt.EventQueue.invokeLater(new Runnable () { 82 public void run() { 83 new ALT_ParallelPosition07().setVisible(true); 84 } 85 }); 86 } 87 88 private javax.swing.JLabel jLabel1; 90 private javax.swing.JLabel jLabel2; 91 private javax.swing.JScrollPane jScrollPane1; 92 private javax.swing.JScrollPane jScrollPane2; 93 private javax.swing.JTextArea jTextArea1; 94 private javax.swing.JTextArea jTextArea2; 95 private javax.swing.JToggleButton jToggleButton1; 96 98 } 99 | Popular Tags |