Revision 4392 branches/v05/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/serverConnect/ServerConnectDialogPanel.java

View differences:

ServerConnectDialogPanel.java
61 61
import es.gva.cit.catalogClient.traductor.ITranslator;
62 62
import es.gva.cit.catalogClient.traductor.Translator;
63 63
import es.gva.cit.catalogClient.ui.search.SearchDialog;
64
import es.gva.cit.catalogClient.utils.comboServer.ServerData;
64
import com.iver.utiles.swing.jcomboServer.ServerData;
65 65

  
66 66
/**
67 67
 * 
......
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
            }
......
364 366
 */
365 367
    public void searchButtonActionPerformed() {        
366 368
	    setEnabled(false);
367
      new SearchDialog(client,true,"");
369
      new SearchDialog(client,true,"",parent);
368 370
    } 
369 371

  
370 372
/**
......
388 390
        if (client.getCapabilities()){
389 391
            search.setEnabled(true);
390 392
            currentServer = controlsPanel.getServerAddress();
393
            searchButtonActionPerformed();
391 394
        }
392 395
        
393 396
        controlsPanel.setRespuesta(translator.getText(client.getServerStatus()));
397
        
394 398
    } 
395 399

  
396 400
/**

Also available in: Unified diff