1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_Indent04 extends javax.swing.JFrame { 5 6 7 public ALT_Indent04() { 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 23 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 24 jLabel1.setText("jLabel1"); 25 26 jLabel2.setText("jLabel2"); 27 28 jLabel3.setText("jLabel3"); 29 30 jLabel4.setText("jLabel4"); 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(layout.createSequentialGroup() 37 .addContainerGap() 38 .add(jLabel1) 39 .add(34, 34, 34) 40 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 41 .add(layout.createSequentialGroup() 42 .add(10, 10, 10) 43 .add(jLabel4) 44 .add(53, 53, 53) 45 .add(jLabel2)) 46 .add(jLabel3)) 47 .addContainerGap(191, Short.MAX_VALUE)) 48 ); 49 layout.setVerticalGroup( 50 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 51 .add(layout.createSequentialGroup() 52 .add(53, 53, 53) 53 .add(jLabel3) 54 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 55 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 56 .add(jLabel1) 57 .add(jLabel2) 58 .add(jLabel4)) 59 .addContainerGap(213, Short.MAX_VALUE)) 60 ); 61 pack(); 62 } 64 67 public static void main(String args[]) { 68 java.awt.EventQueue.invokeLater(new Runnable () { 69 public void run() { 70 new ALT_Indent04().setVisible(true); 71 } 72 }); 73 } 74 75 private javax.swing.JLabel jLabel1; 77 private javax.swing.JLabel jLabel2; 78 private javax.swing.JLabel jLabel3; 79 private javax.swing.JLabel jLabel4; 80 82 } 83 | Popular Tags |