Revision 4346
trunk/extensions/extCatalogYNomenclator/config/config.xml | ||
---|---|---|
11 | 11 |
<tool-bar name="Acciones"> |
12 | 12 |
<action-tool icon="images/SearchButton.png" |
13 | 13 |
tooltip="catalog_search" |
14 |
position="1" |
|
14 | 15 |
/> |
15 | 16 |
</tool-bar> |
16 | 17 |
</extension> |
... | ... | |
21 | 22 |
<tool-bar name="Acciones"> |
22 | 23 |
<action-tool icon="images/GazzButton.png" |
23 | 24 |
tooltip="gazetteer_search" |
24 |
action-command="GAZETTEER"/> |
|
25 |
action-command="GAZETTEER" |
|
26 |
position="2"/> |
|
25 | 27 |
<action-tool icon="images/delone.png" |
26 | 28 |
tooltip="mantainold" |
27 |
action-command="DELETE"/> |
|
29 |
action-command="DELETE" |
|
30 |
position="3"/> |
|
28 | 31 |
</tool-bar> |
29 | 32 |
</extension> |
30 | 33 |
</extensions> |
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/catalogClient/gui/ShowResultsDialog.java | ||
---|---|---|
80 | 80 |
*/ |
81 | 81 |
public void descriptionButtonActionPerformed() { |
82 | 82 |
ShowTreeDialog dialog = new ShowTreeDialog((XMLNode)nodes.toArray()[getCurrentNode()]); |
83 |
dialog.setBounds(0, 0, 800, 650);
|
|
83 |
dialog.setBounds(0, 0, 796, 645);
|
|
84 | 84 |
dialog.setName(PluginServices.getText(this, "metadata_tree")); |
85 | 85 |
dialog.setVisible(true); |
86 | 86 |
PluginServices.getMDIManager().addView(dialog); |
... | ... | |
96 | 96 |
col.add(resources[i]); |
97 | 97 |
} |
98 | 98 |
ChooseResourceDialog dialog = new ChooseResourceDialog(col); |
99 |
dialog.setBounds(0, 0, 600, 148);
|
|
99 |
dialog.setBounds(0, 0, 586, 145);
|
|
100 | 100 |
dialog.setName(PluginServices.getText(this, "Recursos Disponibles")); |
101 | 101 |
dialog.setVisible(true); |
102 | 102 |
PluginServices.getMDIManager().addView(dialog); |
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/catalogClient/gui/SearchDialog.java | ||
---|---|---|
87 | 87 |
*/ |
88 | 88 |
protected void showResults(Collection nodes) { |
89 | 89 |
JDialog panel = new JDialog((Frame) PluginServices.getMainFrame(), false); |
90 |
Frames.centerFrame(panel,615,425);
|
|
90 |
Frames.centerFrame(panel,610,418);
|
|
91 | 91 |
panel.setTitle(PluginServices.getText(this, "search_results")); |
92 | 92 |
panel.setResizable(false); |
93 | 93 |
|
... | ... | |
131 | 131 |
*/ |
132 | 132 |
public void sizeButtonActionPerformed(){ |
133 | 133 |
if (isMinimized){ |
134 |
frame.setSize(525,455);
|
|
134 |
frame.setSize(525,453);
|
|
135 | 135 |
getLowerPanel().setVisible(true); |
136 |
getLowerPanel().repaint(); |
|
136 |
//getLowerPanel().repaint();
|
|
137 | 137 |
getUpperPanel().setUpIcon(); |
138 | 138 |
frame.setVisible(true); |
139 | 139 |
}else{ |
140 |
frame.setSize(525,120);
|
|
140 |
frame.setSize(525,118);
|
|
141 | 141 |
getLowerPanel().setVisible(false); |
142 | 142 |
getUpperPanel().setDownIcon(); |
143 | 143 |
} |
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/catalogClient/gui/ConnectDialog.java | ||
---|---|---|
73 | 73 |
* Inicializa el Dialog |
74 | 74 |
*/ |
75 | 75 |
private void init() { |
76 |
this.setBounds(0, 0, 597, 240);
|
|
76 |
this.setBounds(0, 0, 597, 238);
|
|
77 | 77 |
setName("connectDialog"); |
78 | 78 |
} |
79 | 79 |
|
... | ... | |
94 | 94 |
closeJDialog(); |
95 | 95 |
|
96 | 96 |
JDialog panel = new JDialog((Frame) PluginServices.getMainFrame(), false); |
97 |
Frames.searchDialogPosition(panel, 525, 120);
|
|
97 |
Frames.searchDialogPosition(panel, 525, 118);
|
|
98 | 98 |
panel.setTitle(PluginServices.getText(this, "catalog_search") + " [" + |
99 | 99 |
getCurrentServer() + "]"); |
100 | 100 |
panel.setResizable(false); |
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/gazetteer/gui/ConnectDialog.java | ||
---|---|---|
74 | 74 |
* |
75 | 75 |
*/ |
76 | 76 |
private void init() { |
77 |
this.setBounds(0, 0, 610, 265);
|
|
77 |
this.setBounds(0, 0, 610, 263);
|
|
78 | 78 |
setName("connectDialog"); |
79 | 79 |
} |
80 | 80 |
|
... | ... | |
87 | 87 |
closeJDialog(); |
88 | 88 |
|
89 | 89 |
JDialog panel = new JDialog((Frame) PluginServices.getMainFrame(), false); |
90 |
Frames.searchDialogPosition(panel,525,120);
|
|
90 |
Frames.searchDialogPosition(panel,525,118);
|
|
91 | 91 |
panel.setTitle(PluginServices.getText(this, "gazetteer_search") + " ["+ getCurrentServer()+"]"); |
92 | 92 |
panel.setResizable(false); |
93 | 93 |
|
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/gazetteer/gui/SearchDialog.java | ||
---|---|---|
90 | 90 |
|
91 | 91 |
public void ShowResultsActionPerformed(Feature[] features) { |
92 | 92 |
JDialog panel = new JDialog((Frame) PluginServices.getMainFrame(), false); |
93 |
Frames.centerFrame(panel,420,262);
|
|
93 |
Frames.centerFrame(panel,420,258);
|
|
94 | 94 |
panel.setTitle(PluginServices.getText(this, "gazetteer_search")); |
95 | 95 |
panel.setResizable(false); |
96 | 96 |
|
... | ... | |
115 | 115 |
*/ |
116 | 116 |
public void sizeButtonActionPerformed(){ |
117 | 117 |
if (isMinimized){ |
118 |
frame.setSize(525,523);
|
|
118 |
frame.setSize(525,521);
|
|
119 | 119 |
getLowerPanel().setVisible(true); |
120 | 120 |
getLowerPanel().repaint(); |
121 | 121 |
getUpperPanel().setUpIcon(); |
122 | 122 |
frame.setVisible(true); |
123 | 123 |
}else{ |
124 |
frame.setSize(525,120);
|
|
124 |
frame.setSize(525,118);
|
|
125 | 125 |
getLowerPanel().setVisible(false); |
126 | 126 |
getUpperPanel().setDownIcon(); |
127 | 127 |
} |
trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/gazetteer/loaders/FeatureLoader.java | ||
---|---|---|
143 | 143 |
|
144 | 144 |
FGraphicLabel theLabel = new FGraphicLabel(geom, idSymbol, feature.getName()); |
145 | 145 |
lyr.addGraphic(theLabel); |
146 |
|
|
146 | 147 |
} |
147 | 148 |
|
148 | 149 |
activeView.getMapControl().drawGraphics(); |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/serverConnect/ServerConnectDialogPanel.java | ||
---|---|---|
150 | 150 |
|
151 | 151 |
ppalPanel = new JPanel(); |
152 | 152 |
ppalPanel.setLayout(new BoxLayout(ppalPanel, BoxLayout.Y_AXIS)); |
153 |
ppalPanel.setPreferredSize(new Dimension(585,240)); |
|
153 | 154 |
ppalPanel.add(getControlsPanel(), null); |
154 | 155 |
ppalPanel.add(getButtonPanel(), null); |
155 | 156 |
|
... | ... | |
169 | 170 |
public ServerConnectPanel getControlsPanel() { |
170 | 171 |
if (controlsPanel == null) { |
171 | 172 |
controlsPanel = new ServerConnectPanel(translator); |
172 |
controlsPanel.setSize(625, 230); |
|
173 | 173 |
controlsPanel.getZ3950Button().addActionListener(this); |
174 | 174 |
controlsPanel.getSrwButton().addActionListener(this); |
175 | 175 |
controlsPanel.getCswButton().addActionListener(this); |
... | ... | |
186 | 186 |
*/ |
187 | 187 |
public JPanel getButtonPanel() { |
188 | 188 |
if (buttonsPanel == null) { |
189 |
buttonsPanel = new JPanel(new FlowLayout()); |
|
189 |
FlowLayout flowLayout = new FlowLayout(); |
|
190 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
191 |
buttonsPanel = new JPanel(flowLayout); |
|
190 | 192 |
buttonsPanel.add(getConnectButton()); |
191 | 193 |
buttonsPanel.add(getSearchButton()); |
192 | 194 |
buttonsPanel.add(getCloseButton()); |
... | ... | |
203 | 205 |
public JButton getConnectButton() { |
204 | 206 |
if (connect == null) { |
205 | 207 |
connect = new JButton(Translator.getText(translator,"connectButton")); |
206 |
connect.setPreferredSize(new Dimension(90, 25));
|
|
208 |
connect.setPreferredSize(new Dimension(80, 23));
|
|
207 | 209 |
connect.setActionCommand("Connect"); |
208 | 210 |
} |
209 | 211 |
return connect; |
... | ... | |
218 | 220 |
public JButton getSearchButton() { |
219 | 221 |
if (search == null) { |
220 | 222 |
search = new JButton(Translator.getText(translator,"searchButton")); |
221 |
search.setPreferredSize(new Dimension(90, 25));
|
|
223 |
search.setPreferredSize(new Dimension(80, 23));
|
|
222 | 224 |
search.setActionCommand("Search"); |
223 | 225 |
search.setEnabled(false); |
224 | 226 |
} |
... | ... | |
234 | 236 |
public JButton getCloseButton() { |
235 | 237 |
if (close == null) { |
236 | 238 |
close = new JButton(Translator.getText(translator,"close")); |
237 |
close.setPreferredSize(new Dimension(90, 25));
|
|
239 |
close.setPreferredSize(new Dimension(80, 23));
|
|
238 | 240 |
close.setActionCommand("close"); |
239 | 241 |
|
240 | 242 |
} |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/showTree/ShowTreeDialogPanel.java | ||
---|---|---|
132 | 132 |
*/ |
133 | 133 |
public JPanel getButtonPanel() { |
134 | 134 |
if (buttonsPanel == null) { |
135 |
buttonsPanel = new JPanel(new FlowLayout()); |
|
135 |
FlowLayout flowLayout = new FlowLayout(); |
|
136 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
137 |
buttonsPanel = new JPanel(flowLayout); |
|
136 | 138 |
buttonsPanel.add(getCloseButton()); |
137 | 139 |
} |
138 | 140 |
return buttonsPanel; |
... | ... | |
147 | 149 |
public JButton getCloseButton() { |
148 | 150 |
if (close == null) { |
149 | 151 |
close = new JButton(Translator.getText(translator,"close")); |
150 |
close.setPreferredSize(new Dimension(90, 25));
|
|
152 |
close.setPreferredSize(new Dimension(80, 23));
|
|
151 | 153 |
close.setActionCommand("close"); |
152 | 154 |
} |
153 | 155 |
return close; |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/showResults/ShowResultsPanel.java | ||
---|---|---|
330 | 330 |
*/ |
331 | 331 |
private JPanel getLinksPanel() { |
332 | 332 |
if (linksPanel == null) { |
333 |
linksPanel = new JPanel(); |
|
333 |
FlowLayout flowLayout = new FlowLayout(); |
|
334 |
flowLayout.setAlignment(flowLayout.RIGHT); |
|
335 |
linksPanel = new JPanel(flowLayout); |
|
334 | 336 |
linksPanel.add(getDescriptionButton(), null); |
335 |
linksPanel.add(getJLabel(), null); |
|
336 | 337 |
linksPanel.add(getMapButton(), null); |
337 | 338 |
linksPanel.add(getCloseButton(), null); |
338 | 339 |
} |
... | ... | |
363 | 364 |
descriptionButton = new JButton(); |
364 | 365 |
descriptionButton.setText(Translator.getText(translator,"description")); |
365 | 366 |
descriptionButton.setActionCommand("description"); |
366 |
//descriptionButton.setPreferredSize(new Dimension(95, 25));
|
|
367 |
descriptionButton.setPreferredSize(new Dimension(95, 23));
|
|
367 | 368 |
} |
368 | 369 |
return descriptionButton; |
369 | 370 |
} |
... | ... | |
392 | 393 |
mapButton = new JButton(); |
393 | 394 |
mapButton.setText(Translator.getText(translator,"addLayer")); |
394 | 395 |
mapButton.setActionCommand("layer"); |
395 |
// mapButton.setPreferredSize(new Dimension(90, 25));
|
|
396 |
mapButton.setPreferredSize(new Dimension(95, 23));
|
|
396 | 397 |
} |
397 | 398 |
return mapButton; |
398 | 399 |
} |
... | ... | |
638 | 639 |
lastButton.setText(Translator.getText(translator,"last")); |
639 | 640 |
lastButton.setActionCommand("last"); |
640 | 641 |
lastButton.setEnabled(false); |
641 |
lastButton.setPreferredSize(new Dimension(95, 25));
|
|
642 |
lastButton.setPreferredSize(new Dimension(95, 23));
|
|
642 | 643 |
} |
643 | 644 |
return lastButton; |
644 | 645 |
} |
... | ... | |
654 | 655 |
nextButton = new JButton(); |
655 | 656 |
nextButton.setText(Translator.getText(translator,"next")); |
656 | 657 |
nextButton.setActionCommand("next"); |
657 |
nextButton.setPreferredSize(new Dimension(95, 25));
|
|
658 |
nextButton.setPreferredSize(new Dimension(95, 23));
|
|
658 | 659 |
if (this.numRecords < 2) { |
659 | 660 |
nextButton.setEnabled(false); |
660 | 661 |
} |
... | ... | |
673 | 674 |
closeButton = new JButton(); |
674 | 675 |
closeButton.setText(Translator.getText(translator,"close")); |
675 | 676 |
closeButton.setActionCommand("close"); |
676 |
closeButton.setPreferredSize(new Dimension(90, 25));
|
|
677 |
closeButton.setPreferredSize(new Dimension(80, 23));
|
|
677 | 678 |
} |
678 | 679 |
return closeButton; |
679 | 680 |
} |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/search/SearchDialogPanel.java | ||
---|---|---|
57 | 57 |
import javax.swing.JButton; |
58 | 58 |
import javax.swing.JCheckBox; |
59 | 59 |
import javax.swing.JFrame; |
60 |
import javax.swing.JLabel; |
|
60 | 61 |
import javax.swing.JOptionPane; |
61 | 62 |
import javax.swing.JPanel; |
62 | 63 |
|
... | ... | |
196 | 197 |
ppalPanel = null; |
197 | 198 |
ppalPanel = new JPanel(); |
198 | 199 |
ppalPanel.setLayout(new BoxLayout(ppalPanel, BoxLayout.Y_AXIS)); |
200 |
ppalPanel.setPreferredSize(new Dimension(514,91)); |
|
199 | 201 |
ppalPanel.add(getUpperPanel()); |
200 | 202 |
ppalPanel.add(getLowerPanel()); |
201 | 203 |
ppalPanel.add(getButtonsPanel()); |
... | ... | |
218 | 220 |
upperPanel = new SearchUpperPanel(translator, |
219 | 221 |
client.getProtocol(), |
220 | 222 |
client.getLnkICatalogServerDriver().getQueryProfile()); |
221 |
|
|
222 | 223 |
} |
223 | 224 |
return upperPanel; |
224 | 225 |
|
... | ... | |
248 | 249 |
*/ |
249 | 250 |
public JPanel getButtonsPanel() { |
250 | 251 |
if (buttonsPanel == null) { |
251 |
buttonsPanel = new JPanel(new FlowLayout()); |
|
252 |
buttonsPanel.add(getSearchButton()); |
|
253 |
buttonsPanel.add(getCancelSearchesButton()); |
|
254 |
buttonsPanel.add(getReturnButton()); |
|
255 |
buttonsPanel.add(getCloseButton()); |
|
252 |
FlowLayout flowLayout = new FlowLayout(); |
|
253 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
254 |
buttonsPanel = new JPanel(flowLayout); |
|
255 |
buttonsPanel.add(getSearchButton(), null); |
|
256 |
buttonsPanel.add(getCancelSearchesButton(), null); |
|
257 |
JLabel label = new JLabel(); |
|
258 |
label.setPreferredSize(new Dimension(6,0)); |
|
259 |
buttonsPanel.add(label, null); |
|
260 |
buttonsPanel.add(getReturnButton(), null); |
|
261 |
buttonsPanel.add(getCloseButton(), null); |
|
256 | 262 |
} |
257 | 263 |
return buttonsPanel; |
258 | 264 |
} |
... | ... | |
266 | 272 |
public JButton getSearchButton() { |
267 | 273 |
if (searchButton == null) { |
268 | 274 |
searchButton = new JButton(Translator.getText(translator,"searchButton")); |
269 |
searchButton.setPreferredSize(new Dimension(90, 25));
|
|
275 |
searchButton.setPreferredSize(new Dimension(80, 23));
|
|
270 | 276 |
searchButton.setActionCommand("search"); |
271 | 277 |
} |
272 | 278 |
return searchButton; |
... | ... | |
281 | 287 |
public JButton getCancelSearchesButton() { |
282 | 288 |
if (cancelSearchesButton == null) { |
283 | 289 |
cancelSearchesButton = new JButton(Translator.getText(translator,"cancelSearchButton")); |
284 |
cancelSearchesButton.setPreferredSize(new Dimension(90, 25));
|
|
290 |
cancelSearchesButton.setPreferredSize(new Dimension(80, 23));
|
|
285 | 291 |
cancelSearchesButton.setActionCommand("cancel"); |
286 | 292 |
} |
287 | 293 |
return cancelSearchesButton; |
... | ... | |
296 | 302 |
public JButton getCloseButton() { |
297 | 303 |
if (closeButton == null) { |
298 | 304 |
closeButton = new JButton(Translator.getText(translator,"close")); |
299 |
closeButton.setPreferredSize(new Dimension(90, 25));
|
|
305 |
closeButton.setPreferredSize(new Dimension(80, 23));
|
|
300 | 306 |
closeButton.setActionCommand("close"); |
301 | 307 |
} |
302 | 308 |
return closeButton; |
... | ... | |
310 | 316 |
*/ |
311 | 317 |
public JButton getReturnButton() { |
312 | 318 |
if (returnButton == null) { |
313 |
returnButton = new JButton(Translator.getText(translator,"return"));
|
|
314 |
returnButton.setPreferredSize(new Dimension(90, 25));
|
|
319 |
returnButton = new JButton(Translator.getText(translator,"last"));
|
|
320 |
returnButton.setPreferredSize(new Dimension(80, 23));
|
|
315 | 321 |
returnButton.setActionCommand("return"); |
316 | 322 |
} |
317 | 323 |
return returnButton; |
... | ... | |
389 | 395 |
*/ |
390 | 396 |
protected void sizeButtonActionPerformed() { |
391 | 397 |
if (isMinimized){ |
392 |
parent.setSize(525,450); |
|
398 |
parent.setSize(525,448); |
|
399 |
ppalPanel.setPreferredSize(new Dimension(514,423)); |
|
400 |
ppalPanel.setVisible(true); |
|
401 |
ppalPanel.revalidate(); |
|
402 |
ppalPanel.repaint(); |
|
393 | 403 |
getLowerPanel().setVisible(true); |
404 |
getLowerPanel().revalidate(); |
|
394 | 405 |
getLowerPanel().repaint(); |
406 |
parent.setVisible(true); |
|
407 |
parent.repaint(); |
|
395 | 408 |
getUpperPanel().setUpIcon(); |
396 |
parent.setVisible(true); |
|
397 | 409 |
}else{ |
398 |
parent.setSize(525,115); |
|
410 |
parent.setSize(525,113); |
|
411 |
ppalPanel.setPreferredSize(new Dimension(514,91)); |
|
399 | 412 |
getLowerPanel().setVisible(false); |
413 |
getLowerPanel().revalidate(); |
|
414 |
getLowerPanel().repaint(); |
|
415 |
ppalPanel.setVisible(true); |
|
416 |
ppalPanel.revalidate(); |
|
417 |
ppalPanel.repaint(); |
|
400 | 418 |
getUpperPanel().setDownIcon(); |
401 | 419 |
} |
402 | 420 |
isMinimized = !isMinimized; |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/chooseResource/ChooseResourceDialogPanel.java | ||
---|---|---|
151 | 151 |
*/ |
152 | 152 |
public JPanel getButtonPanel() { |
153 | 153 |
if (buttonsPanel == null) { |
154 |
buttonsPanel = new JPanel(new FlowLayout()); |
|
154 |
FlowLayout flowLayout = new FlowLayout(); |
|
155 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
156 |
buttonsPanel = new JPanel(flowLayout); |
|
155 | 157 |
buttonsPanel.add(getCloseButton()); |
156 | 158 |
} |
157 | 159 |
return buttonsPanel; |
... | ... | |
166 | 168 |
public JButton getCloseButton() { |
167 | 169 |
if (cerrar == null) { |
168 | 170 |
cerrar = new JButton(Translator.getText(translator,"close")); |
169 |
cerrar.setPreferredSize(new Dimension(90, 25));
|
|
171 |
cerrar.setPreferredSize(new Dimension(80, 23));
|
|
170 | 172 |
cerrar.setActionCommand("close"); |
171 | 173 |
} |
172 | 174 |
return cerrar; |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/search/SearchDialogPanel.java | ||
---|---|---|
58 | 58 |
import javax.swing.BoxLayout; |
59 | 59 |
import javax.swing.JButton; |
60 | 60 |
import javax.swing.JFrame; |
61 |
import javax.swing.JLabel; |
|
61 | 62 |
import javax.swing.JOptionPane; |
62 | 63 |
import javax.swing.JPanel; |
63 | 64 |
import javax.swing.event.TreeSelectionEvent; |
... | ... | |
189 | 190 |
*/ |
190 | 191 |
private void initialize() { |
191 | 192 |
ppalPanel = new JPanel(); |
192 |
ppalPanel.setBounds(0, 0,625,330); |
|
193 | 193 |
ppalPanel.setLayout(new BoxLayout(ppalPanel, BoxLayout.Y_AXIS)); |
194 |
ppalPanel.setPreferredSize(new Dimension(514,91)); |
|
194 | 195 |
ppalPanel.add(getUpperPanel(), null); |
195 | 196 |
ppalPanel.add(getLowerPanel(), null); |
196 | 197 |
ppalPanel.add(getButtonPanel(), null); |
... | ... | |
251 | 252 |
*/ |
252 | 253 |
public JPanel getButtonPanel() { |
253 | 254 |
if (buttonsPanel == null) { |
254 |
buttonsPanel = new JPanel(new FlowLayout()); |
|
255 |
FlowLayout flowLayout = new FlowLayout(); |
|
256 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
257 |
buttonsPanel = new JPanel(flowLayout); |
|
255 | 258 |
buttonsPanel.add(getSearchButton()); |
256 | 259 |
buttonsPanel.add(getCancelSearchesButton()); |
260 |
JLabel label = new JLabel(); |
|
261 |
label.setPreferredSize(new Dimension(6,0)); |
|
262 |
buttonsPanel.add(label); |
|
257 | 263 |
buttonsPanel.add(getReturnButton()); |
258 | 264 |
buttonsPanel.add(getCloseButton()); |
259 | 265 |
|
... | ... | |
269 | 275 |
*/ |
270 | 276 |
public JButton getReturnButton() { |
271 | 277 |
if (returnButton == null) { |
272 |
returnButton = new JButton(Translator.getText(translator,"return"));
|
|
273 |
returnButton.setPreferredSize(new Dimension(90, 25));
|
|
278 |
returnButton = new JButton(Translator.getText(translator,"last"));
|
|
279 |
returnButton.setPreferredSize(new Dimension(80, 23));
|
|
274 | 280 |
returnButton.setActionCommand("return"); |
275 | 281 |
} |
276 | 282 |
return returnButton; |
... | ... | |
286 | 292 |
public JButton getSearchButton() { |
287 | 293 |
if (searchButton == null) { |
288 | 294 |
searchButton = new JButton(Translator.getText(translator,"searchButton")); |
289 |
searchButton.setPreferredSize(new Dimension(90, 25));
|
|
295 |
searchButton.setPreferredSize(new Dimension(80, 23));
|
|
290 | 296 |
searchButton.setActionCommand("search"); |
291 | 297 |
} |
292 | 298 |
return searchButton; |
... | ... | |
301 | 307 |
public JButton getCancelSearchesButton() { |
302 | 308 |
if (cancelSearchesButton == null) { |
303 | 309 |
cancelSearchesButton = new JButton(Translator.getText(translator,"cancelSearchButton")); |
304 |
cancelSearchesButton.setPreferredSize(new Dimension(90, 25));
|
|
310 |
cancelSearchesButton.setPreferredSize(new Dimension(80, 23));
|
|
305 | 311 |
cancelSearchesButton.setActionCommand("cancel"); |
306 | 312 |
} |
307 | 313 |
return cancelSearchesButton; |
... | ... | |
316 | 322 |
public JButton getCloseButton() { |
317 | 323 |
if (closeButton == null) { |
318 | 324 |
closeButton = new JButton(Translator.getText(translator,"close")); |
319 |
closeButton.setPreferredSize(new Dimension(90, 25));
|
|
325 |
closeButton.setPreferredSize(new Dimension(80, 23));
|
|
320 | 326 |
closeButton.setActionCommand("close"); |
321 | 327 |
} |
322 | 328 |
return closeButton; |
... | ... | |
396 | 402 |
protected void sizeButtonActionPerformed() { |
397 | 403 |
if (isMinimized){ |
398 | 404 |
parent.setSize(525,450); |
405 |
ppalPanel.setPreferredSize(new Dimension(514,426)); |
|
406 |
ppalPanel.setVisible(true); |
|
407 |
ppalPanel.revalidate(); |
|
408 |
ppalPanel.repaint(); |
|
399 | 409 |
getLowerPanel().setVisible(true); |
410 |
getLowerPanel().revalidate(); |
|
400 | 411 |
getLowerPanel().repaint(); |
412 |
parent.setVisible(true); |
|
413 |
parent.repaint(); |
|
401 | 414 |
getUpperPanel().setUpIcon(); |
402 |
parent.setVisible(true); |
|
403 | 415 |
}else{ |
404 | 416 |
parent.setSize(525,115); |
417 |
ppalPanel.setPreferredSize(new Dimension(514,91)); |
|
405 | 418 |
getLowerPanel().setVisible(false); |
419 |
getLowerPanel().revalidate(); |
|
420 |
getLowerPanel().repaint(); |
|
421 |
ppalPanel.setVisible(true); |
|
422 |
ppalPanel.revalidate(); |
|
423 |
ppalPanel.repaint(); |
|
406 | 424 |
getUpperPanel().setDownIcon(); |
407 | 425 |
} |
408 | 426 |
isMinimized = !isMinimized; |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/serverConnect/ServerConnectDialogPanel.java | ||
---|---|---|
146 | 146 |
this.translator = translator; |
147 | 147 |
this.parent = parent; |
148 | 148 |
ppalPanel = new JPanel(); |
149 |
ppalPanel.setPreferredSize(new Dimension(600,265)); |
|
149 | 150 |
ppalPanel.setLayout(new BoxLayout(ppalPanel, BoxLayout.Y_AXIS)); |
150 | 151 |
ppalPanel.add(getControlsPanel(), null); |
151 | 152 |
ppalPanel.add(getButtonPanel(), null); |
... | ... | |
179 | 180 |
*/ |
180 | 181 |
public JPanel getButtonPanel() { |
181 | 182 |
if (buttonsPanel == null) { |
182 |
buttonsPanel = new JPanel(new FlowLayout()); |
|
183 |
FlowLayout flowLayout = new FlowLayout(); |
|
184 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
185 |
buttonsPanel = new JPanel(flowLayout); |
|
183 | 186 |
buttonsPanel.add(getConnectButton()); |
184 | 187 |
buttonsPanel.add(getSearchButton()); |
185 | 188 |
buttonsPanel.add(getCloseButton()); |
... | ... | |
196 | 199 |
public JButton getConnectButton() { |
197 | 200 |
if (connectButton == null) { |
198 | 201 |
connectButton = new JButton(Translator.getText(translator,"connectButton")); |
199 |
connectButton.setPreferredSize(new Dimension(90, 25));
|
|
202 |
connectButton.setPreferredSize(new Dimension(80, 23));
|
|
200 | 203 |
connectButton.setActionCommand("Connect"); |
201 | 204 |
} |
202 | 205 |
return connectButton; |
... | ... | |
211 | 214 |
public JButton getSearchButton() { |
212 | 215 |
if (searchButton == null) { |
213 | 216 |
searchButton = new JButton(Translator.getText(translator,"searchButton")); |
214 |
searchButton.setPreferredSize(new Dimension(90, 25));
|
|
217 |
searchButton.setPreferredSize(new Dimension(80, 23));
|
|
215 | 218 |
searchButton.setActionCommand("Search"); |
216 | 219 |
searchButton.setEnabled(false); |
217 | 220 |
} |
... | ... | |
227 | 230 |
public JButton getCloseButton() { |
228 | 231 |
if (closeButton == null) { |
229 | 232 |
closeButton = new JButton(Translator.getText(translator,"close")); |
230 |
closeButton.setPreferredSize(new Dimension(90, 25));
|
|
233 |
closeButton.setPreferredSize(new Dimension(80, 23));
|
|
231 | 234 |
closeButton.setActionCommand("close"); |
232 | 235 |
|
233 | 236 |
} |
trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/showResults/ShowResultsPanel.java | ||
---|---|---|
168 | 168 |
*/ |
169 | 169 |
private void initialize(int recordsByPage) { |
170 | 170 |
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
171 |
this.setSize(465, 230); |
|
172 |
this.setPreferredSize(new java.awt.Dimension(465,230)); |
|
171 |
this.setPreferredSize(new java.awt.Dimension(410,230)); |
|
173 | 172 |
this.add(getNextLastPanel(), null); |
174 | 173 |
this.add(getDescriptionPanel(), null); |
175 | 174 |
this.add(getLinksPanel(), null); |
... | ... | |
256 | 255 |
private JPanel getLinksPanel() { |
257 | 256 |
if (linksPanel == null) { |
258 | 257 |
linksPanel = new JPanel(); |
258 |
FlowLayout flowLayout = new FlowLayout(); |
|
259 |
flowLayout.setAlignment(FlowLayout.RIGHT); |
|
260 |
linksPanel = new JPanel(flowLayout); |
|
259 | 261 |
linksPanel.add(getMapButton(), null); |
260 | 262 |
linksPanel.add(getCloseButton(), null); |
261 | 263 |
} |
... | ... | |
273 | 275 |
mapButton = new JButton(); |
274 | 276 |
mapButton.setText(Translator.getText(translator,"localize")); |
275 | 277 |
mapButton.setActionCommand("localize"); |
276 |
mapButton.setPreferredSize(new Dimension(90, 25));
|
|
278 |
mapButton.setPreferredSize(new Dimension(80, 23));
|
|
277 | 279 |
} |
278 | 280 |
return mapButton; |
279 | 281 |
} |
... | ... | |
325 | 327 |
lastButton.setText(Translator.getText(translator,"last")); |
326 | 328 |
lastButton.setActionCommand("last"); |
327 | 329 |
lastButton.setEnabled(false); |
328 |
lastButton.setPreferredSize(new Dimension(95, 25));
|
|
330 |
lastButton.setPreferredSize(new Dimension(80, 23));
|
|
329 | 331 |
} |
330 | 332 |
return lastButton; |
331 | 333 |
} |
... | ... | |
341 | 343 |
nextButton = new JButton(); |
342 | 344 |
nextButton.setText(Translator.getText(translator,"next")); |
343 | 345 |
nextButton.setActionCommand("next"); |
344 |
nextButton.setPreferredSize(new Dimension(95, 25));
|
|
346 |
nextButton.setPreferredSize(new Dimension(80, 23));
|
|
345 | 347 |
if (this.numPages < 2) { |
346 | 348 |
nextButton.setEnabled(false); |
347 | 349 |
} |
... | ... | |
360 | 362 |
closeButton = new JButton(); |
361 | 363 |
closeButton.setText(Translator.getText(translator,"close")); |
362 | 364 |
closeButton.setActionCommand("close"); |
363 |
closeButton.setPreferredSize(new Dimension(90, 25));
|
|
365 |
closeButton.setPreferredSize(new Dimension(80, 23));
|
|
364 | 366 |
} |
365 | 367 |
return closeButton; |
366 | 368 |
} |
Also available in: Unified diff