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 / dynformset / NewJPanel.java @ 42775
History | View | Annotate | Download (6.93 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.dynformset; |
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 |
jScrollPane1 = new javax.swing.JScrollPane();
|
32 |
table = new javax.swing.JTable();
|
33 |
btnNew = new javax.swing.JButton();
|
34 |
btnShow = new javax.swing.JButton();
|
35 |
btnModify = new javax.swing.JButton();
|
36 |
btnRemove = new javax.swing.JButton();
|
37 |
filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5)); |
38 |
btnSelect = new javax.swing.JButton();
|
39 |
filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5), new java.awt.Dimension(5, 5)); |
40 |
|
41 |
java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
|
42 |
layout.columnWidths = new int[] {0, 5, 0, 5, 0, 5, 0}; |
43 |
layout.rowHeights = new int[] {0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0}; |
44 |
setLayout(layout); |
45 |
|
46 |
table.setModel(new javax.swing.table.DefaultTableModel(
|
47 |
new Object [][] { |
48 |
{null, null, null, null}, |
49 |
{null, null, null, null}, |
50 |
{null, null, null, null}, |
51 |
{null, null, null, null} |
52 |
}, |
53 |
new String [] { |
54 |
"Title 1", "Title 2", "Title 3", "Title 4" |
55 |
} |
56 |
)); |
57 |
jScrollPane1.setViewportView(table); |
58 |
|
59 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
60 |
gridBagConstraints.gridx = 2;
|
61 |
gridBagConstraints.gridy = 2;
|
62 |
gridBagConstraints.gridheight = 11;
|
63 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; |
64 |
gridBagConstraints.weightx = 1.0;
|
65 |
gridBagConstraints.weighty = 1.0;
|
66 |
add(jScrollPane1, gridBagConstraints); |
67 |
|
68 |
btnNew.setText("_nuevo");
|
69 |
btnNew.addActionListener(new java.awt.event.ActionListener() {
|
70 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
71 |
btnNewActionPerformed(evt); |
72 |
} |
73 |
}); |
74 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
75 |
gridBagConstraints.gridx = 4;
|
76 |
gridBagConstraints.gridy = 2;
|
77 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
78 |
add(btnNew, gridBagConstraints); |
79 |
|
80 |
btnShow.setText("_mostrar");
|
81 |
btnShow.addActionListener(new java.awt.event.ActionListener() {
|
82 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
83 |
btnShowActionPerformed(evt); |
84 |
} |
85 |
}); |
86 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
87 |
gridBagConstraints.gridx = 4;
|
88 |
gridBagConstraints.gridy = 4;
|
89 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
90 |
add(btnShow, gridBagConstraints); |
91 |
|
92 |
btnModify.setText("_modificar");
|
93 |
btnModify.addActionListener(new java.awt.event.ActionListener() {
|
94 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
95 |
btnModifyActionPerformed(evt); |
96 |
} |
97 |
}); |
98 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
99 |
gridBagConstraints.gridx = 4;
|
100 |
gridBagConstraints.gridy = 6;
|
101 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
102 |
add(btnModify, gridBagConstraints); |
103 |
|
104 |
btnRemove.setText("_eliminar");
|
105 |
btnRemove.addActionListener(new java.awt.event.ActionListener() {
|
106 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
107 |
btnRemoveActionPerformed(evt); |
108 |
} |
109 |
}); |
110 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
111 |
gridBagConstraints.gridx = 4;
|
112 |
gridBagConstraints.gridy = 8;
|
113 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
114 |
add(btnRemove, gridBagConstraints); |
115 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
116 |
gridBagConstraints.gridx = 6;
|
117 |
gridBagConstraints.gridy = 14;
|
118 |
add(filler1, gridBagConstraints); |
119 |
|
120 |
btnSelect.setText("_seleccionar");
|
121 |
btnSelect.addActionListener(new java.awt.event.ActionListener() {
|
122 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
123 |
btnSelectActionPerformed(evt); |
124 |
} |
125 |
}); |
126 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
127 |
gridBagConstraints.gridx = 4;
|
128 |
gridBagConstraints.gridy = 10;
|
129 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
130 |
add(btnSelect, gridBagConstraints); |
131 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
132 |
gridBagConstraints.gridx = 0;
|
133 |
gridBagConstraints.gridy = 0;
|
134 |
add(filler2, gridBagConstraints); |
135 |
}// </editor-fold>//GEN-END:initComponents
|
136 |
|
137 |
private void btnShowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnShowActionPerformed |
138 |
// TODO add your handling code here:
|
139 |
}//GEN-LAST:event_btnShowActionPerformed
|
140 |
|
141 |
private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnNewActionPerformed |
142 |
// TODO add your handling code here:
|
143 |
}//GEN-LAST:event_btnNewActionPerformed
|
144 |
|
145 |
private void btnModifyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnModifyActionPerformed |
146 |
// TODO add your handling code here:
|
147 |
}//GEN-LAST:event_btnModifyActionPerformed
|
148 |
|
149 |
private void btnRemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnRemoveActionPerformed |
150 |
// TODO add your handling code here:
|
151 |
}//GEN-LAST:event_btnRemoveActionPerformed
|
152 |
|
153 |
private void btnSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSelectActionPerformed |
154 |
// TODO add your handling code here:
|
155 |
}//GEN-LAST:event_btnSelectActionPerformed
|
156 |
|
157 |
|
158 |
// Variables declaration - do not modify//GEN-BEGIN:variables
|
159 |
protected javax.swing.JButton btnModify;
|
160 |
protected javax.swing.JButton btnNew;
|
161 |
protected javax.swing.JButton btnRemove;
|
162 |
protected javax.swing.JButton btnSelect;
|
163 |
protected javax.swing.JButton btnShow;
|
164 |
protected javax.swing.Box.Filler filler1;
|
165 |
protected javax.swing.Box.Filler filler2;
|
166 |
protected javax.swing.JScrollPane jScrollPane1;
|
167 |
protected javax.swing.JTable table;
|
168 |
// End of variables declaration//GEN-END:variables
|
169 |
} |