1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_BorderPositions01 extends javax.swing.JFrame { 5 6 7 public ALT_BorderPositions01() { 8 initComponents(); 9 } 10 11 16 private void initComponents() { 18 jPanel1 = new javax.swing.JPanel (); 19 20 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 21 org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1); 22 jPanel1.setLayout(jPanel1Layout); 23 jPanel1Layout.setHorizontalGroup( 24 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 25 .add(0, 107, Short.MAX_VALUE) 26 ); 27 jPanel1Layout.setVerticalGroup( 28 jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 29 .add(0, 81, Short.MAX_VALUE) 30 ); 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.TRAILING, layout.createSequentialGroup() 37 .addContainerGap(283, Short.MAX_VALUE) 38 .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 39 .addContainerGap()) 40 ); 41 layout.setVerticalGroup( 42 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 43 .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() 44 .addContainerGap(208, Short.MAX_VALUE) 45 .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 46 .addContainerGap()) 47 ); 48 pack(); 49 } 51 54 public static void main(String args[]) { 55 java.awt.EventQueue.invokeLater(new Runnable () { 56 public void run() { 57 new ALT_BorderPositions01().setVisible(true); 58 } 59 }); 60 } 61 62 private javax.swing.JPanel jPanel1; 64 66 } 67 | Popular Tags |