1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_Indent01 extends javax.swing.JFrame { 5 6 7 public ALT_Indent01() { 8 initComponents(); 9 } 10 11 16 private void initComponents() { 18 jLabel1 = new javax.swing.JLabel (); 19 jLabel2 = new javax.swing.JLabel (); 20 jLabel3 = new javax.swing.JLabel (); 21 jLabel4 = new javax.swing.JLabel (); 22 jLabel5 = new javax.swing.JLabel (); 23 24 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 25 jLabel1.setText("jLabel1"); 26 27 jLabel2.setText("jLabel2"); 28 29 jLabel3.setText("jLabel3aaa"); 30 31 jLabel4.setText("jLabel4"); 32 33 jLabel5.setText("jLabel5"); 34 35 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane()); 36 getContentPane().setLayout(layout); 37 layout.setHorizontalGroup( 38 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 39 .add(layout.createSequentialGroup() 40 .addContainerGap() 41 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 42 .add(layout.createSequentialGroup() 43 .add(jLabel1) 44 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 45 .add(jLabel2)) 46 .add(layout.createSequentialGroup() 47 .add(10, 10, 10) 48 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 49 .add(layout.createSequentialGroup() 50 .add(10, 10, 10) 51 .add(jLabel5)) 52 .add(layout.createSequentialGroup() 53 .add(jLabel3) 54 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 55 .add(jLabel4))))) 56 .addContainerGap(288, Short.MAX_VALUE)) 57 ); 58 layout.setVerticalGroup( 59 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 60 .add(layout.createSequentialGroup() 61 .addContainerGap() 62 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 63 .add(jLabel1) 64 .add(jLabel2)) 65 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 66 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 67 .add(jLabel3) 68 .add(jLabel4)) 69 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 70 .add(jLabel5) 71 .addContainerGap(235, 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_Indent01().setVisible(true); 83 } 84 }); 85 } 86 87 private javax.swing.JLabel jLabel1; 89 private javax.swing.JLabel jLabel2; 90 private javax.swing.JLabel jLabel3; 91 private javax.swing.JLabel jLabel4; 92 private javax.swing.JLabel jLabel5; 93 95 } 96 | Popular Tags |