Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.swing / org.gvsig.fmap.dal.swing.impl / src / main / java / org / gvsig / featureform / swing / impl / NewJPanel.java @ 42775

History | View | Annotate | Download (5.86 KB)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.featureform.swing.impl;
7

    
8
/**
9
 *
10
 * @author jjdelcerro
11
 */
12
public class NewJPanel extends javax.swing.JPanel {
13

    
14
    /**
15
     * Creates new form NewJPanel
16
     */
17
    public NewJPanel() {
18
        initComponents();
19
    }
20

    
21
    /**
22
     * This method is called from within the constructor to initialize the form.
23
     * WARNING: Do NOT modify this code. The content of this method is always
24
     * regenerated by the Form Editor.
25
     */
26
    @SuppressWarnings("unchecked")
27
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
28
    private void initComponents() {
29
        java.awt.GridBagConstraints gridBagConstraints;
30

    
31
        jLabel1 = new javax.swing.JLabel();
32
        jTextField1 = new javax.swing.JTextField();
33
        jButton1 = new javax.swing.JButton();
34
        jScrollPane1 = new javax.swing.JScrollPane();
35
        jList1 = new javax.swing.JList();
36
        filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5));
37
        filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5));
38
        jLabel2 = new javax.swing.JLabel();
39

    
40
        java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
41
        layout.columnWidths = new int[] {0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0};
42
        layout.rowHeights = new int[] {0, 5, 0, 5, 0, 5, 0};
43
        setLayout(layout);
44

    
45
        jLabel1.setText("jLabel1");
46
        gridBagConstraints = new java.awt.GridBagConstraints();
47
        gridBagConstraints.gridx = 2;
48
        gridBagConstraints.gridy = 2;
49
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
50
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
51
        gridBagConstraints.weightx = 0.1;
52
        add(jLabel1, gridBagConstraints);
53
        gridBagConstraints = new java.awt.GridBagConstraints();
54
        gridBagConstraints.gridx = 6;
55
        gridBagConstraints.gridy = 2;
56
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
57
        gridBagConstraints.weightx = 0.9;
58
        add(jTextField1, gridBagConstraints);
59

    
60
        jButton1.setText("...");
61
        jButton1.addActionListener(new java.awt.event.ActionListener() {
62
            public void actionPerformed(java.awt.event.ActionEvent evt) {
63
                jButton1ActionPerformed(evt);
64
            }
65
        });
66
        gridBagConstraints = new java.awt.GridBagConstraints();
67
        gridBagConstraints.gridx = 8;
68
        gridBagConstraints.gridy = 2;
69
        add(jButton1, gridBagConstraints);
70

    
71
        jList1.setModel(new javax.swing.AbstractListModel() {
72
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
73
            public int getSize() { return strings.length; }
74
            public Object getElementAt(int i) { return strings[i]; }
75
        });
76
        jList1.addMouseListener(new java.awt.event.MouseAdapter() {
77
            public void mouseClicked(java.awt.event.MouseEvent evt) {
78
                jList1MouseClicked(evt);
79
            }
80
        });
81
        jList1.addKeyListener(new java.awt.event.KeyAdapter() {
82
            public void keyPressed(java.awt.event.KeyEvent evt) {
83
                jList1KeyPressed(evt);
84
            }
85
        });
86
        jScrollPane1.setViewportView(jList1);
87

    
88
        gridBagConstraints = new java.awt.GridBagConstraints();
89
        gridBagConstraints.gridx = 2;
90
        gridBagConstraints.gridy = 4;
91
        gridBagConstraints.gridwidth = 7;
92
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
93
        gridBagConstraints.weightx = 0.2;
94
        gridBagConstraints.weighty = 0.2;
95
        add(jScrollPane1, gridBagConstraints);
96
        gridBagConstraints = new java.awt.GridBagConstraints();
97
        gridBagConstraints.gridx = 0;
98
        gridBagConstraints.gridy = 0;
99
        add(filler1, gridBagConstraints);
100
        gridBagConstraints = new java.awt.GridBagConstraints();
101
        gridBagConstraints.gridx = 10;
102
        gridBagConstraints.gridy = 6;
103
        add(filler2, gridBagConstraints);
104

    
105
        jLabel2.setText("v");
106
        jLabel2.addMouseListener(new java.awt.event.MouseAdapter() {
107
            public void mouseClicked(java.awt.event.MouseEvent evt) {
108
                jLabel2MouseClicked(evt);
109
            }
110
        });
111
        gridBagConstraints = new java.awt.GridBagConstraints();
112
        gridBagConstraints.gridx = 4;
113
        gridBagConstraints.gridy = 2;
114
        add(jLabel2, gridBagConstraints);
115
    }// </editor-fold>//GEN-END:initComponents
116

    
117
    private void jLabel2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel2MouseClicked
118
        // TODO add your handling code here:
119
    }//GEN-LAST:event_jLabel2MouseClicked
120

    
121
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
122
        // TODO add your handling code here:
123
    }//GEN-LAST:event_jButton1ActionPerformed
124

    
125
    private void jList1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseClicked
126
        // TODO add your handling code here:
127
    }//GEN-LAST:event_jList1MouseClicked
128

    
129
    private void jList1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jList1KeyPressed
130
        // TODO add your handling code here:
131
    }//GEN-LAST:event_jList1KeyPressed
132

    
133

    
134
    // Variables declaration - do not modify//GEN-BEGIN:variables
135
    protected javax.swing.Box.Filler filler1;
136
    protected javax.swing.Box.Filler filler2;
137
    protected javax.swing.JButton jButton1;
138
    protected javax.swing.JLabel jLabel1;
139
    protected javax.swing.JLabel jLabel2;
140
    protected javax.swing.JList jList1;
141
    protected javax.swing.JScrollPane jScrollPane1;
142
    protected javax.swing.JTextField jTextField1;
143
    // End of variables declaration//GEN-END:variables
144
}