Revision 40978 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/wizard/UnsavedDataPanel.java
UnsavedDataPanel.java | ||
---|---|---|
29 | 29 |
import java.awt.FlowLayout; |
30 | 30 |
import java.awt.GridBagConstraints; |
31 | 31 |
import java.awt.GridBagLayout; |
32 |
import java.awt.GridLayout; |
|
32 | 33 |
import java.awt.Insets; |
33 | 34 |
import java.awt.event.ActionEvent; |
34 | 35 |
import java.awt.event.ActionListener; |
... | ... | |
38 | 39 |
import java.util.ArrayList; |
39 | 40 |
import java.util.Iterator; |
40 | 41 |
|
42 |
import javax.swing.BorderFactory; |
|
41 | 43 |
import javax.swing.ImageIcon; |
42 | 44 |
import javax.swing.JCheckBox; |
43 | 45 |
import javax.swing.JLabel; |
... | ... | |
104 | 106 |
borderLayout.setHgap(5); |
105 | 107 |
borderLayout.setVgap(5); |
106 | 108 |
lblDescription = new JLabel(); |
109 |
lblDescription.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0)); |
|
107 | 110 |
lblDescription.setText(PluginServices.getText(this, "select_resources_to_save_before_exit")); |
108 |
lblDescription.setPreferredSize(new Dimension(497, 40));
|
|
111 |
lblDescription.setPreferredSize(new Dimension(497, 30));
|
|
109 | 112 |
lblDescription.setName("lblDescription"); |
110 | 113 |
this.setLayout(borderLayout); |
111 | 114 |
this.setSize(396, 272); |
... | ... | |
124 | 127 |
pResources = new JPanel(); |
125 | 128 |
pResources.setLayout(new BorderLayout()); |
126 | 129 |
pResources.add(getPScrollList(), BorderLayout.CENTER); |
127 |
pResources.add(getLblResourceDescription(), BorderLayout.SOUTH); |
|
130 |
// pResources.add(getLblResourceDescription(), BorderLayout.SOUTH);
|
|
128 | 131 |
} |
129 | 132 |
return pResources; |
130 | 133 |
} |
... | ... | |
138 | 141 |
private JLabel getLblResourceDescription() { |
139 | 142 |
if (lblResourceDescription == null) { |
140 | 143 |
lblResourceDescription = new JLabel(); |
144 |
lblResourceDescription.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0)); |
|
141 | 145 |
lblResourceDescription.setText(""); |
142 | 146 |
lblResourceDescription.setPreferredSize(new Dimension(38, 50)); |
143 | 147 |
lblResourceDescription.setName("lblResourceDescription"); |
... | ... | |
249 | 253 |
*/ |
250 | 254 |
private JPanel getPActionButtons() { |
251 | 255 |
if (pActionButtons == null) { |
256 |
|
|
257 |
GridLayout gl = new GridLayout(1, 3, 8, 0); |
|
258 |
/* |
|
252 | 259 |
FlowLayout flowLayout = new FlowLayout(); |
253 | 260 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
261 |
*/ |
|
254 | 262 |
pActionButtons = new JPanel(); |
255 |
pActionButtons.setLayout(flowLayout); |
|
263 |
pActionButtons.setBorder(BorderFactory.createEmptyBorder(8,8,8,8)); |
|
264 |
pActionButtons.setLayout(gl); |
|
256 | 265 |
pActionButtons.setName("pActionButtons"); |
257 |
pActionButtons.add(getBotSave(), null);
|
|
258 |
pActionButtons.add(getBotDiscard(), null);
|
|
259 |
pActionButtons.add(getBotDontExit(), null);
|
|
266 |
pActionButtons.add(getBotSave()); |
|
267 |
pActionButtons.add(getBotDiscard()); |
|
268 |
pActionButtons.add(getBotDontExit()); |
|
260 | 269 |
} |
261 | 270 |
return pActionButtons; |
262 | 271 |
} |
... | ... | |
268 | 277 |
*/ |
269 | 278 |
private JPanel getPSelectionButtons() { |
270 | 279 |
if (pSelectionButtons == null) { |
280 |
GridLayout gl = new GridLayout(2, 3, 8, 8); |
|
281 |
/* |
|
271 | 282 |
FlowLayout flowLayout1 = new FlowLayout(); |
272 | 283 |
flowLayout1.setAlignment(FlowLayout.LEFT); |
284 |
*/ |
|
273 | 285 |
pSelectionButtons = new JPanel(); |
274 |
pSelectionButtons.setLayout(flowLayout1); |
|
286 |
pSelectionButtons.setBorder(BorderFactory.createEmptyBorder(5,8,8,8)); |
|
287 |
pSelectionButtons.setLayout(gl); |
|
275 | 288 |
pSelectionButtons.setName("pSelectionButtons"); |
276 |
pSelectionButtons.add(getBotSelectAll(), null); |
|
277 |
pSelectionButtons.add(getBotDeselectAll(), null); |
|
289 |
pSelectionButtons.add(getBotSelectAll()); |
|
290 |
pSelectionButtons.add(new JLabel()); |
|
291 |
pSelectionButtons.add(new JLabel()); |
|
292 |
// new row |
|
293 |
pSelectionButtons.add(getBotDeselectAll()); |
|
294 |
pSelectionButtons.add(new JLabel()); |
|
295 |
pSelectionButtons.add(new JLabel()); |
|
296 |
|
|
278 | 297 |
} |
279 | 298 |
return pSelectionButtons; |
280 | 299 |
} |
Also available in: Unified diff