KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > subversion > options > LabelsPanel


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.subversion.options;
20
21 /**
22  *
23  * @author Tomas Stupka
24  */

25 public class LabelsPanel extends javax.swing.JPanel JavaDoc {
26     
27     /** Creates new form LabelsPanel */
28     public LabelsPanel() {
29         initComponents();
30
31
32
33     }
34     
35     /** This method is called from within the constructor to
36      * initialize the form.
37      * WARNING: Do NOT modify this code. The content of this method is
38      * always regenerated by the Form Editor.
39      */

40     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
41
private void initComponents() {
42
43         jScrollPane1 = new javax.swing.JScrollPane JavaDoc();
44
45         labelsList.setModel(new javax.swing.AbstractListModel JavaDoc() {
46             String JavaDoc[] strings = { "item1", "item2", "item3" };
47             public int getSize() { return strings.length; }
48             public Object JavaDoc getElementAt(int i) { return strings[i]; }
49         });
50         jScrollPane1.setViewportView(labelsList);
51
52         org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
53         this.setLayout(layout);
54         layout.setHorizontalGroup(
55             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
56             .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 373, Short.MAX_VALUE)
57         );
58         layout.setVerticalGroup(
59             layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
60             .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)
61         );
62     }// </editor-fold>//GEN-END:initComponents
63

64     
65     // Variables declaration - do not modify//GEN-BEGIN:variables
66
private javax.swing.JScrollPane JavaDoc jScrollPane1;
67     final javax.swing.JList JavaDoc labelsList = new javax.swing.JList JavaDoc();
68     // End of variables declaration//GEN-END:variables
69

70 }
71
Popular Tags