1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_ParallelPosition18 extends javax.swing.JFrame { 5 6 7 public ALT_ParallelPosition18() { 8 initComponents(); 9 } 10 11 16 private void initComponents() { 18 jLabel1 = new javax.swing.JLabel (); 19 jTextField1 = new javax.swing.JTextField (); 20 jLabel2 = new javax.swing.JLabel (); 21 jTextField2 = new javax.swing.JTextField (); 22 jScrollPane1 = new javax.swing.JScrollPane (); 23 jTextArea1 = new javax.swing.JTextArea (); 24 25 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 26 jLabel1.setText("jLabel1"); 27 28 jTextField1.setText("jTextField1"); 29 30 jLabel2.setText("jLabel2"); 31 32 jTextField2.setText("jTextField2"); 33 34 jTextArea1.setColumns(20); 35 jTextArea1.setRows(5); 36 jScrollPane1.setViewportView(jTextArea1); 37 38 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); 39 getContentPane().setLayout(layout); 40 layout.setHorizontalGroup( 41 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 42 .add(layout.createSequentialGroup() 43 .addContainerGap() 44 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 45 .add(layout.createSequentialGroup() 46 .add(jLabel1) 47 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 48 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 97, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 49 .add(layout.createSequentialGroup() 50 .add(jLabel2) 51 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 52 .add(jTextField2, 0, 232, Short.MAX_VALUE))) 53 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 54 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 55 .addContainerGap()) 56 ); 57 layout.setVerticalGroup( 58 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 59 .add(layout.createSequentialGroup() 60 .addContainerGap() 61 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 62 .add(layout.createSequentialGroup() 63 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 64 .add(jLabel1) 65 .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 66 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 67 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 68 .add(jLabel2) 69 .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) 70 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 71 .addContainerGap(225, Short.MAX_VALUE)) 72 ); 73 pack(); 74 } 76 79 public static void main(String args[]) { 80 java.awt.EventQueue.invokeLater(new Runnable () { 81 public void run() { 82 new ALT_ParallelPosition18().setVisible(true); 83 } 84 }); 85 } 86 87 private javax.swing.JLabel jLabel1; 89 private javax.swing.JLabel jLabel2; 90 private javax.swing.JScrollPane jScrollPane1; 91 private javax.swing.JTextArea jTextArea1; 92 private javax.swing.JTextField jTextField1; 93 private javax.swing.JTextField jTextField2; 94 96 } 97 | Popular Tags |