Revision 727 org.gvsig.topology/trunk/org.gvsig.topology/org.gvsig.topology.swing/org.gvsig.topology.swing.impl/src/main/java/org/gvsig/topology/swing/impl/DefaultJTopologyPlanPropertiesView.java
DefaultJTopologyPlanPropertiesView.java | ||
---|---|---|
31 | 31 |
JList lstRules = new JList(); |
32 | 32 |
JButton btnAddRule = new JButton(); |
33 | 33 |
JButton btnRemoveRule = new JButton(); |
34 |
JButton btnEditRule = new JButton(); |
|
34 | 35 |
JLabel lblTolerance = new JLabel(); |
35 | 36 |
JTextField txtTolerance = new JTextField(); |
36 | 37 |
|
... | ... | |
178 | 179 |
CellConstraints cc = new CellConstraints(); |
179 | 180 |
jpanel1.setLayout(formlayout1); |
180 | 181 |
|
181 |
btnAddDataSet.setIcon(loadImage("org/gvsig/topology/swing/impl/images/dataset_add.png"));
|
|
182 |
btnAddDataSet.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-plan-dataset-add.png"));
|
|
182 | 183 |
btnAddDataSet.setName("btnAddDataSet"); |
183 | 184 |
btnAddDataSet.setToolTipText("_Add_dataset"); |
184 | 185 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
185 | 186 |
btnAddDataSet.setBorder(emptyborder1); |
186 | 187 |
jpanel1.add(btnAddDataSet,cc.xy(6,1)); |
187 | 188 |
|
188 |
btnRemoveDataSet.setIcon(loadImage("org/gvsig/topology/swing/impl/images/dataset_remove.png"));
|
|
189 |
btnRemoveDataSet.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-plan-dataset-remove.png"));
|
|
189 | 190 |
btnRemoveDataSet.setName("btnRemoveDataSet"); |
190 | 191 |
btnRemoveDataSet.setToolTipText("_Remove_dataset"); |
191 | 192 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
... | ... | |
218 | 219 |
public JPanel createPanel4() |
219 | 220 |
{ |
220 | 221 |
JPanel jpanel1 = new JPanel(); |
221 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
|
222 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
|
|
222 | 223 |
CellConstraints cc = new CellConstraints(); |
223 | 224 |
jpanel1.setLayout(formlayout1); |
224 | 225 |
|
225 |
btnAddRule.setIcon(loadImage("org/gvsig/topology/swing/impl/images/rule_add.png"));
|
|
226 |
btnAddRule.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-plan-rule-add.png"));
|
|
226 | 227 |
btnAddRule.setName("btnAddRule"); |
227 | 228 |
btnAddRule.setToolTipText("_Add_rule"); |
228 | 229 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
229 | 230 |
btnAddRule.setBorder(emptyborder1); |
230 |
jpanel1.add(btnAddRule,cc.xy(5,1));
|
|
231 |
jpanel1.add(btnAddRule,cc.xy(7,1));
|
|
231 | 232 |
|
232 |
btnRemoveRule.setIcon(loadImage("org/gvsig/topology/swing/impl/images/rule_remove.png"));
|
|
233 |
btnRemoveRule.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-plan-rule-remove.png"));
|
|
233 | 234 |
btnRemoveRule.setName("btnRemoveRule"); |
234 | 235 |
btnRemoveRule.setToolTipText("_Remove_rule"); |
235 | 236 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
236 | 237 |
btnRemoveRule.setBorder(emptyborder2); |
237 | 238 |
jpanel1.add(btnRemoveRule,cc.xy(3,1)); |
238 | 239 |
|
239 |
addFillComponents(jpanel1,new int[]{ 1,2,4 },new int[]{ 1 }); |
|
240 |
btnEditRule.setIcon(loadImage("org/gvsig/topology/swing/impl/images/topology-plan-rule-edit.png")); |
|
241 |
btnEditRule.setName("btnEditRule"); |
|
242 |
btnEditRule.setToolTipText("_Edit_rule"); |
|
243 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
|
244 |
btnEditRule.setBorder(emptyborder3); |
|
245 |
jpanel1.add(btnEditRule,cc.xy(5,1)); |
|
246 |
|
|
247 |
addFillComponents(jpanel1,new int[]{ 1,2,4,6 },new int[]{ 1 }); |
|
240 | 248 |
return jpanel1; |
241 | 249 |
} |
242 | 250 |
|
Also available in: Unified diff