001: package org.netbeans.modules.form.layoutdesign;
002:
003: public class ALT_ParallelPosition21 extends javax.swing.JFrame {
004:
005: /** Creates new form ALT_ParallelPosition21 */
006: public ALT_ParallelPosition21() {
007: initComponents();
008: }
009:
010: /** This method is called from within the constructor to
011: * initialize the form.
012: * WARNING: Do NOT modify this code. The content of this method is
013: * always regenerated by the Form Editor.
014: */
015: // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
016: private void initComponents() {
017: jLabel1 = new javax.swing.JLabel();
018: jScrollPane1 = new javax.swing.JScrollPane();
019: jList1 = new javax.swing.JList();
020: jScrollPane2 = new javax.swing.JScrollPane();
021: jTextArea1 = new javax.swing.JTextArea();
022:
023: setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
024: jLabel1.setText("jLabel1");
025:
026: jList1.setModel(new javax.swing.AbstractListModel() {
027: String[] strings = { "Item 1", "Item 2", "Item 3",
028: "Item 4", "Item 5" };
029:
030: public int getSize() {
031: return strings.length;
032: }
033:
034: public Object getElementAt(int i) {
035: return strings[i];
036: }
037: });
038: jScrollPane1.setViewportView(jList1);
039:
040: jTextArea1.setColumns(20);
041: jTextArea1.setRows(5);
042: jScrollPane2.setViewportView(jTextArea1);
043:
044: org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
045: getContentPane());
046: getContentPane().setLayout(layout);
047: layout
048: .setHorizontalGroup(layout
049: .createParallelGroup(
050: org.jdesktop.layout.GroupLayout.LEADING)
051: .add(
052: layout
053: .createSequentialGroup()
054: .addContainerGap()
055: .add(
056: layout
057: .createParallelGroup(
058: org.jdesktop.layout.GroupLayout.LEADING)
059: .add(jLabel1)
060: .add(
061: jScrollPane2,
062: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
063: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
064: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
065: .add(43, 43, 43)
066: .add(
067: jScrollPane1,
068: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
069: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
070: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
071: .addContainerGap(206,
072: Short.MAX_VALUE)));
073: layout
074: .setVerticalGroup(layout
075: .createParallelGroup(
076: org.jdesktop.layout.GroupLayout.LEADING)
077: .add(
078: layout
079: .createSequentialGroup()
080: .addContainerGap()
081: .add(
082: layout
083: .createParallelGroup(
084: org.jdesktop.layout.GroupLayout.LEADING)
085: .add(
086: jScrollPane1,
087: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
088: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
089: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
090: .add(
091: layout
092: .createSequentialGroup()
093: .add(
094: jLabel1)
095: .add(
096: 86,
097: 86,
098: 86)
099: .add(
100: jScrollPane2,
101: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
102: org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
103: org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
104: .addContainerGap(125,
105: Short.MAX_VALUE)));
106: pack();
107: }// </editor-fold>//GEN-END:initComponents
108:
109: /**
110: * @param args the command line arguments
111: */
112: public static void main(String args[]) {
113: java.awt.EventQueue.invokeLater(new Runnable() {
114: public void run() {
115: new ALT_ParallelPosition21().setVisible(true);
116: }
117: });
118: }
119:
120: // Variables declaration - do not modify//GEN-BEGIN:variables
121: private javax.swing.JLabel jLabel1;
122: private javax.swing.JList jList1;
123: private javax.swing.JScrollPane jScrollPane1;
124: private javax.swing.JScrollPane jScrollPane2;
125: private javax.swing.JTextArea jTextArea1;
126: // End of variables declaration//GEN-END:variables
127:
128: }
|