Revision 4392 branches/v05/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/ui/serverConnect/ServerConnectDialogPanel.java
ServerConnectDialogPanel.java | ||
---|---|---|
42 | 42 |
package es.gva.cit.gazetteer.ui.serverConnect; |
43 | 43 |
import es.gva.cit.catalogClient.traductor.ITranslator; |
44 | 44 |
import es.gva.cit.catalogClient.traductor.Translator; |
45 |
import es.gva.cit.catalogClient.utils.comboServer.ServerData;
|
|
45 |
import com.iver.utiles.swing.jcomboServer.ServerData;
|
|
46 | 46 |
import es.gva.cit.gazetteer.GazetteerClient; |
47 | 47 |
import es.gva.cit.gazetteer.ui.search.SearchDialog; |
48 | 48 |
import java.awt.Dimension; |
... | ... | |
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 |
} |
... | ... | |
349 | 352 |
*/ |
350 | 353 |
public void searchButtonActionPerformed() { |
351 | 354 |
setEnabled(false); |
352 |
new SearchDialog(client); |
|
355 |
new SearchDialog(client,parent);
|
|
353 | 356 |
} |
354 | 357 |
|
355 | 358 |
/** |
... | ... | |
365 | 368 |
if (client.getCapabilities()){ |
366 | 369 |
searchButton.setEnabled(true); |
367 | 370 |
currentServer = controlsPanel.getServerAddress(); |
371 |
searchButtonActionPerformed(); |
|
368 | 372 |
} |
369 | 373 |
|
370 | 374 |
controlsPanel.setRespuesta(translator.getText(client.getServerStatus())); |
Also available in: Unified diff