Revision 40723 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/preferences/general/IconThemePageLayout.java

View differences:

IconThemePageLayout.java
28 28
import java.awt.ComponentOrientation;
29 29
import java.awt.Container;
30 30
import java.awt.Dimension;
31
import java.awt.GridBagConstraints;
32
import java.awt.GridBagLayout;
33
import java.awt.Insets;
31 34

  
32 35
import javax.swing.Box;
33 36
import javax.swing.ImageIcon;
......
35 38
import javax.swing.JComboBox;
36 39
import javax.swing.JLabel;
37 40
import javax.swing.JPanel;
41
import javax.swing.JTextArea;
38 42

  
43
import org.gvsig.i18n.Messages;
44

  
39 45
import com.jgoodies.forms.layout.CellConstraints;
40 46
import com.jgoodies.forms.layout.FormLayout;
41 47

  
......
47 53

  
48 54
	JLabel label_title = new JLabel();
49 55
	JLabel label_selection = new JLabel();
50
	JLabel label_export = new JLabel();
56
	JTextArea label_export = new JTextArea();
51 57
	JComboBox combo_selection = new JComboBox();
52 58
	JButton button_export = new JButton();
53 59

  
......
137 143
	}
138 144

  
139 145
	public JPanel createPanel() {
140
		JPanel jpanel1 = new JPanel();
141
		FormLayout formlayout1 = new FormLayout(
142
				"FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE",
143
				"CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
144
		CellConstraints cc = new CellConstraints();
145
		jpanel1.setLayout(formlayout1);
146

  
146
		
147
		GridBagLayout gbl = new GridBagLayout();
148
		JPanel resp = new JPanel(gbl);
149
		GridBagConstraints gbc = new GridBagConstraints();
150
		
151
		gbc.insets = new Insets(2, 30, 0, 30);
152
		gbc.anchor = GridBagConstraints.NORTHWEST;
153
		gbc.fill = GridBagConstraints.BOTH;
154
		gbc.gridx = 0;
155
		// ==============================
156
		gbc.gridy = 0;
147 157
		label_title.setName("label_title");
148
		label_title.setText("_Icon_themes_availables");
149
		jpanel1.add(label_title, cc.xywh(2, 2, 3, 1));
150

  
158
		label_title.setText(Messages.getText("_Icon_themes_availables"));
159
		resp.add(label_title, gbc);
160
		// ==============================
161
		gbc.gridy = 1;
151 162
		label_selection.setName("label_selection");
152
		label_selection
153
				.setText("_Select_an_icon_theme_as_default_for_use_in_the_application");
154
		jpanel1.add(label_selection, cc.xywh(2, 3, 3, 1));
155

  
163
		label_selection.setText(Messages.getText(
164
				"_Select_an_icon_theme_as_default_for_use_in_the_application"));
165
		resp.add(label_selection, gbc);
166
		// ==============================
167
		gbc.gridy = 2;
168
		combo_selection.setName("combo_selection");
169
		resp.add(combo_selection, gbc);
170
		// ==============================
171
		gbc.gridy = 3;
172
		resp.add(new JLabel(" "), gbc);
173
		// ==============================
174
		gbc.gridy = 4;
156 175
		label_export.setName("label_export");
157
		label_export
158
				.setText("_You_can_export_the_default_icon_theme_to_use_as_base_for_create_a_custom_icon_theme");
159
		jpanel1.add(label_export, cc.xywh(2, 6, 3, 1));
160

  
161
		combo_selection.setName("combo_selection");
162
		jpanel1.add(combo_selection, cc.xy(3, 4));
163

  
176
		label_export.setWrapStyleWord(true);
177
		label_export.setLineWrap(true);
178
		label_export.setFont(new JLabel().getFont());
179
		label_export.setBackground(resp.getBackground());
180
		label_export.setText(Messages.getText(
181
				"_You_can_export_the_default_icon_theme_to_use_as_base_for_create_a_custom_icon_theme"));
182
		resp.add(label_export, gbc);
183
		// ==============================
184
		gbc.gridy = 5;
185
		gbc.fill = GridBagConstraints.NONE;
186
		gbc.anchor = GridBagConstraints.NORTH;
164 187
		button_export.setActionCommand("_Export_default_icon_theme");
165 188
		button_export.setName("button_export");
166
		button_export.setText("_Export_default_icon_theme");
167
		jpanel1.add(button_export, new CellConstraints(3, 8, 1, 1,
168
				CellConstraints.LEFT, CellConstraints.DEFAULT));
169

  
170
		addFillComponents(jpanel1, new int[] { 1, 2, 3, 4 }, new int[] { 1, 2,
171
				3, 4, 5, 6, 7, 8, 9 });
172
		return jpanel1;
189
		button_export.setText(Messages.getText(
190
				"_Export_default_icon_theme"));
191
		resp.add(button_export, gbc);
192
		// ==============================
193
		return resp;
173 194
	}
174 195

  
175 196
	/**

Also available in: Unified diff