1 2 package org.netbeans.modules.form.layoutdesign; 3 4 public class ALT_Indent02 extends javax.swing.JFrame { 5 6 7 public ALT_Indent02() { 8 initComponents(); 9 } 10 11 16 private void initComponents() { 18 jPanel5 = new javax.swing.JPanel (); 19 jLabel19 = new javax.swing.JLabel (); 20 jLabel20 = new javax.swing.JLabel (); 21 jComboBox9 = new javax.swing.JComboBox (); 22 jLabel22 = new javax.swing.JLabel (); 23 jLabel23 = new javax.swing.JLabel (); 24 jComboBox11 = new javax.swing.JComboBox (); 25 jLabel27 = new javax.swing.JLabel (); 26 jComboBox13 = new javax.swing.JComboBox (); 27 28 setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); 29 jLabel19.setText("Text Files"); 30 31 jLabel20.setText("Show text in icons:"); 32 33 jComboBox9.setModel(new javax.swing.DefaultComboBoxModel (new String [] { "Item 1", "Item 2", "Item 3", "Item 4" })); 34 35 jLabel22.setText("Other Previewable Files"); 36 37 jLabel23.setText("Show thumbnails:"); 38 39 jComboBox11.setModel(new javax.swing.DefaultComboBoxModel (new String [] { "Item 1", "Item 2", "Item 3", "Item 4" })); 40 41 jLabel27.setText("Only for files smaller then:"); 42 43 jComboBox13.setModel(new javax.swing.DefaultComboBoxModel (new String [] { "Item 1", "Item 2", "Item 3", "Item 4" })); 44 45 org.jdesktop.layout.GroupLayout jPanel5Layout = new org.jdesktop.layout.GroupLayout(jPanel5); 46 jPanel5.setLayout(jPanel5Layout); 47 jPanel5Layout.setHorizontalGroup( 48 jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 49 .add(jPanel5Layout.createSequentialGroup() 50 .add(20, 20, 20) 51 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 52 .add(jLabel22) 53 .add(jPanel5Layout.createSequentialGroup() 54 .add(10, 10, 10) 55 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 56 .add(jLabel23) 57 .add(jLabel27) 58 .add(jLabel20)) 59 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 60 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 61 .add(jComboBox9, 0, 230, Short.MAX_VALUE) 62 .add(jComboBox11, 0, 230, Short.MAX_VALUE) 63 .add(jComboBox13, 0, 230, Short.MAX_VALUE))) 64 .add(jLabel19)) 65 .addContainerGap()) 66 ); 67 jPanel5Layout.setVerticalGroup( 68 jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 69 .add(jPanel5Layout.createSequentialGroup() 70 .addContainerGap() 71 .add(jLabel19) 72 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 73 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 74 .add(jComboBox9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 75 .add(jLabel20)) 76 .add(30, 30, 30) 77 .add(jLabel22) 78 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 79 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 80 .add(jLabel23) 81 .add(jComboBox11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 82 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 83 .add(jPanel5Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 84 .add(jLabel27) 85 .add(jComboBox13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 86 .addContainerGap(155, Short.MAX_VALUE)) 87 ); 88 getContentPane().add(jPanel5, java.awt.BorderLayout.CENTER); 89 90 pack(); 91 } 93 96 public static void main(String args[]) { 97 java.awt.EventQueue.invokeLater(new Runnable () { 98 public void run() { 99 new ALT_Indent02().setVisible(true); 100 } 101 }); 102 } 103 104 private javax.swing.JComboBox jComboBox11; 106 private javax.swing.JComboBox jComboBox13; 107 private javax.swing.JComboBox jComboBox9; 108 private javax.swing.JLabel jLabel19; 109 private javax.swing.JLabel jLabel20; 110 private javax.swing.JLabel jLabel22; 111 private javax.swing.JLabel jLabel23; 112 private javax.swing.JLabel jLabel27; 113 private javax.swing.JPanel jPanel5; 114 116 } 117 | Popular Tags |