Revision 45425 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.geodb.app/org.gvsig.geodb.app.mainplugin/src/main/java/org/gvsig/geodb/vectorialdb/visibility/VisibilityScaleSelectorView.java
VisibilityScaleSelectorView.java | ||
---|---|---|
1 | 1 |
package org.gvsig.geodb.vectorialdb.visibility; |
2 | 2 |
|
3 |
import com.jeta.open.i18n.I18NUtils; |
|
3 | 4 |
import com.jgoodies.forms.layout.CellConstraints; |
4 | 5 |
import com.jgoodies.forms.layout.FormLayout; |
5 | 6 |
import java.awt.BorderLayout; |
... | ... | |
9 | 10 |
import javax.swing.Box; |
10 | 11 |
import javax.swing.ButtonGroup; |
11 | 12 |
import javax.swing.ImageIcon; |
12 |
import javax.swing.JButton; |
|
13 | 13 |
import javax.swing.JCheckBox; |
14 | 14 |
import javax.swing.JFormattedTextField; |
15 |
import javax.swing.JFrame; |
|
15 | 16 |
import javax.swing.JLabel; |
16 | 17 |
import javax.swing.JPanel; |
17 | 18 |
import javax.swing.JRadioButton; |
... | ... | |
31 | 32 |
JLabel lbl_1_25000_description = new JLabel(); |
32 | 33 |
JLabel lblDescription = new JLabel(); |
33 | 34 |
JCheckBox chkRememberAnswer = new JCheckBox(); |
34 |
JButton btnAccept = new JButton(); |
|
35 |
JButton btnCancel = new JButton(); |
|
36 | 35 |
JRadioButton rdb1_1000 = new JRadioButton(); |
37 | 36 |
JLabel lbl_1_1000_description = new JLabel(); |
38 | 37 |
JRadioButton rdb1_5000 = new JRadioButton(); |
... | ... | |
128 | 127 |
public JPanel createPanel() |
129 | 128 |
{ |
130 | 129 |
JPanel jpanel1 = new JPanel(); |
131 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MAX(100PX;DEFAULT):NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
|
|
130 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MAX(100PX;DEFAULT):NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
|
132 | 131 |
CellConstraints cc = new CellConstraints(); |
133 | 132 |
jpanel1.setLayout(formlayout1); |
134 | 133 |
|
... | ... | |
177 | 176 |
chkRememberAnswer.setActionCommand("remember_this_answer"); |
178 | 177 |
chkRememberAnswer.setName("chkRememberAnswer"); |
179 | 178 |
chkRememberAnswer.setText("remember_this_answer"); |
180 |
jpanel1.add(chkRememberAnswer,cc.xywh(2,17,6,1));
|
|
179 |
jpanel1.add(chkRememberAnswer,new CellConstraints(2,17,6,1,CellConstraints.DEFAULT,CellConstraints.TOP));
|
|
181 | 180 |
|
182 |
jpanel1.add(createPanel1(),cc.xywh(2,20,6,1)); |
|
183 | 181 |
rdb1_1000.setActionCommand("1:1000"); |
184 | 182 |
rdb1_1000.setName("rdb1_1000"); |
185 | 183 |
rdb1_1000.setText("1:1000"); |
... | ... | |
200 | 198 |
lbl_1_5000_description.setText("1_5000_description"); |
201 | 199 |
jpanel1.add(lbl_1_5000_description,cc.xywh(3,8,5,1)); |
202 | 200 |
|
203 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 });
|
|
201 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 }); |
|
204 | 202 |
return jpanel1; |
205 | 203 |
} |
206 | 204 |
|
207 |
public JPanel createPanel1() |
|
208 |
{ |
|
209 |
JPanel jpanel1 = new JPanel(); |
|
210 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE"); |
|
211 |
CellConstraints cc = new CellConstraints(); |
|
212 |
jpanel1.setLayout(formlayout1); |
|
213 |
|
|
214 |
btnAccept.setActionCommand("ok"); |
|
215 |
btnAccept.setName("btnAccept"); |
|
216 |
btnAccept.setText("ok"); |
|
217 |
jpanel1.add(btnAccept,cc.xy(2,1)); |
|
218 |
|
|
219 |
btnCancel.setActionCommand("cancel"); |
|
220 |
btnCancel.setName("btnCancel"); |
|
221 |
btnCancel.setText("cancel"); |
|
222 |
jpanel1.add(btnCancel,cc.xy(4,1)); |
|
223 |
|
|
224 |
addFillComponents(jpanel1,new int[]{ 1,3,5 },new int[]{ 1 }); |
|
225 |
return jpanel1; |
|
226 |
} |
|
227 |
|
|
228 | 205 |
/** |
229 | 206 |
* Initializer |
230 | 207 |
*/ |
Also available in: Unified diff