Revision 16088 trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/gridmath/gui/OutputOptionsPanel.java
OutputOptionsPanel.java | ||
---|---|---|
43 | 43 |
import info.clearthought.layout.TableLayout; |
44 | 44 |
|
45 | 45 |
import java.awt.BorderLayout; |
46 |
import java.awt.Dimension; |
|
47 | 46 |
import java.awt.GridBagConstraints; |
48 | 47 |
import java.awt.GridBagLayout; |
49 | 48 |
import java.awt.event.ActionEvent; |
... | ... | |
131 | 130 |
public void Inicializar(){ |
132 | 131 |
BorderLayout bd=new BorderLayout(); |
133 | 132 |
this.setLayout(bd); |
134 |
this.setBorder( new EmptyBorder(5, 5, 5, 5));
|
|
133 |
this.setBorder( new EmptyBorder(2, 2, 2, 2));
|
|
135 | 134 |
this.add(getNamePanel(),BorderLayout.NORTH); |
136 | 135 |
this.add(getPanelExtension(),BorderLayout.WEST); |
137 | 136 |
this.add(getParameterPanel(),BorderLayout.CENTER); |
... | ... | |
241 | 240 |
panelExtension=new JPanel(); |
242 | 241 |
TitledBorder topBorder = BorderFactory.createTitledBorder((PluginServices.getText(this,"extension_from"))); |
243 | 242 |
topBorder.setTitlePosition(TitledBorder.TOP); |
244 |
panelExtension.setBorder(new CompoundBorder(topBorder,new EmptyBorder(0,5,6,5)));
|
|
243 |
panelExtension.setBorder(new CompoundBorder(topBorder,new EmptyBorder(5,5,6,5)));
|
|
245 | 244 |
|
246 | 245 |
JPanel p=new JPanel(); |
247 |
// p.setPreferredSize(new Dimension(250,140));
|
|
246 |
//p.setPreferredSize(new Dimension(200,130));
|
|
248 | 247 |
TableLayout thisLayout = new TableLayout(new double[][] { |
249 |
{TableLayout.PREFERRED, TableLayout.PREFERRED},
|
|
250 |
{TableLayout.PREFERRED,TableLayout.PREFERRED,TableLayout.PREFERRED, TableLayout.PREFERRED,TableLayout.PREFERRED }});
|
|
248 |
{200},
|
|
249 |
{TableLayout.PREFERRED,TableLayout.PREFERRED,TableLayout.PREFERRED, TableLayout.PREFERRED}}); |
|
251 | 250 |
//Establece la separacin entre los elementos |
252 | 251 |
thisLayout.setHGap(5); |
253 |
thisLayout.setVGap(10); |
|
252 |
thisLayout.setVGap(5); |
|
253 |
panelExtension.setLayout(thisLayout); |
|
254 | 254 |
p.setLayout(thisLayout); |
255 | 255 |
ButtonGroup buttonGroup = new ButtonGroup(); |
256 | 256 |
buttonGroup.add(getRButtom1()); |
257 | 257 |
buttonGroup.add(getRButtom2()); |
258 | 258 |
buttonGroup.add(getRButtom4()); |
259 |
p.add(getRButtom1(),"1,0"); |
|
260 |
p.add(getRButtom2(),"1,1"); |
|
261 |
p.add(getRButtom4(),"1,2"); |
|
262 |
// thisLayout.setVGap(5); |
|
263 |
p.add(getJComboCapas(),"1,3"); |
|
264 |
|
|
265 |
panelExtension.add(p); |
|
259 |
panelExtension.add(getRButtom1(),"0,0"); |
|
260 |
panelExtension.add(getRButtom2(),"0,1"); |
|
261 |
panelExtension.add(getRButtom4(),"0,2"); |
|
262 |
panelExtension.add(getJComboCapas(),"0,3"); |
|
263 |
|
|
266 | 264 |
} |
267 | 265 |
|
268 | 266 |
return panelExtension; |
... | ... | |
279 | 277 |
paramPanel=new JPanel(); |
280 | 278 |
TitledBorder topBorder = BorderFactory.createTitledBorder((PluginServices.getText(this,"parametros"))); |
281 | 279 |
topBorder.setTitlePosition(TitledBorder.TOP); |
282 |
paramPanel.setBorder(new CompoundBorder(topBorder,new EmptyBorder(0,5,6,5)));
|
|
280 |
paramPanel.setBorder(new CompoundBorder(topBorder,new EmptyBorder(5,5,6,5)));
|
|
283 | 281 |
|
284 | 282 |
|
285 | 283 |
JPanel p=new JPanel(); |
286 |
p.setPreferredSize(new Dimension(320,130)); |
|
284 |
// p.setPreferredSize(new Dimension(320,130));
|
|
287 | 285 |
TableLayout thisLayout = new TableLayout(new double[][] { |
288 | 286 |
{150,75, 75}, |
289 |
{3,20,20,20,20}});
|
|
287 |
{20,20,20,20}}); |
|
290 | 288 |
//Establece la separacin entre los elementos |
291 |
thisLayout.setHGap(5);
|
|
292 |
thisLayout.setVGap(10);
|
|
289 |
thisLayout.setHGap(3);
|
|
290 |
thisLayout.setVGap(3);
|
|
293 | 291 |
p.setLayout(thisLayout); |
294 | 292 |
|
295 | 293 |
//Aado los diferentes elementos |
296 |
p.add(new JLabel((PluginServices.getText(this,"rangox"))),"0,1");
|
|
297 |
p.add(new JLabel((PluginServices.getText(this,"rangoy"))),"0,2");
|
|
298 |
p.add(new JLabel((PluginServices.getText(this,"tamanio_celda"))),"0,3");
|
|
299 |
p.add(new JLabel((PluginServices.getText(this,"num_filas_columnas"))),"0,4");
|
|
300 |
p.add(getJTextCellSize(),"1,3");
|
|
301 |
p.add(getJTextNumFiCol1(),"1,4");
|
|
302 |
p.add(getJTextNumFiCol2(),"2,4");
|
|
303 |
p.add(getJTextRangoX1(),"1,1");
|
|
304 |
p.add(getJTextRangoX2(),"2,1");
|
|
305 |
p.add(getJTextRangoY1(),"1,2");
|
|
306 |
p.add(getJTextRangoY2(),"2,2");
|
|
294 |
p.add(new JLabel((PluginServices.getText(this,"rangox"))),"0,0");
|
|
295 |
p.add(new JLabel((PluginServices.getText(this,"rangoy"))),"0,1");
|
|
296 |
p.add(new JLabel((PluginServices.getText(this,"tamanio_celda"))),"0,2");
|
|
297 |
p.add(new JLabel((PluginServices.getText(this,"num_filas_columnas"))),"0,3");
|
|
298 |
p.add(getJTextCellSize(),"1,2");
|
|
299 |
p.add(getJTextNumFiCol1(),"1,3");
|
|
300 |
p.add(getJTextNumFiCol2(),"2,3");
|
|
301 |
p.add(getJTextRangoX1(),"1,0");
|
|
302 |
p.add(getJTextRangoX2(),"2,0");
|
|
303 |
p.add(getJTextRangoY1(),"1,1");
|
|
304 |
p.add(getJTextRangoY2(),"2,1");
|
|
307 | 305 |
|
308 | 306 |
paramPanel.add(p); |
309 | 307 |
} |
Also available in: Unified diff