Revision 40978

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/ui/wizard/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
	}
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/extension/ProjectExtension.java
262 262
            TerminationProcess process = Launcher.getTerminationProcess();
263 263
            UnsavedDataPanel panel = process.getUnsavedDataPanel();
264 264
            panel.setHeaderText(PluginServices.getText(this,
265
                "Select_resources_to_save_before_closing_current_project"));
265
                "_Select_resources_to_save_before_closing_current_project"));
266 266
            panel.setAcceptText(PluginServices.getText(this, "save_resources"),
267 267
                PluginServices.getText(this,
268 268
                    "Save_the_selected_resources_and_close_current_project"));
269
            panel.setCancelText(PluginServices.getText(this, "Dont_close"),
269
            panel.setCancelText(PluginServices.getText(this, "Cancel"),
270 270
                PluginServices.getText(this, "Return_to_current_project"));
271 271
            int closeCurrProj;
272 272
            try {
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/i18n/text.properties
1175 1175
_No_input_format_available=No se ha encontrado ning?n formato de lectura
1176 1176
_Unable_to_read_legend=No se ha podido leer la leyenda
1177 1177
_There_are_no_documents_to_paste=No hay documentos para pegar
1178
_Select_resources_to_save_before_closing_current_project=Seleccione los recursos a salvar antes de cerrar el proyecto actual
1178 1179

  
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties
1096 1096
_No_input_format_available=No input format available
1097 1097
_Unable_to_read_legend=Unable to read legend
1098 1098
_There_are_no_documents_to_paste=There are no documents to paste
1099
_Select_resources_to_save_before_closing_current_project=Select resources to save before closing current project
1099 1100

  
1100 1101

  
1101 1102

  

Also available in: Unified diff