Revision 47845 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.downloader/org.gvsig.downloader.swing/org.gvsig.downloader.swing.impl/src/main/java/org/gvsig/downloader/swing/impl/config/DownloaderConfigServicePanelImpl.java

View differences:

DownloaderConfigServicePanelImpl.java
12 12
import javax.swing.ImageIcon;
13 13
import javax.swing.JComponent;
14 14
import javax.swing.JOptionPane;
15
import javax.swing.SwingUtilities;
15 16
import javax.swing.event.ChangeListener;
16 17
import javax.swing.event.DocumentEvent;
17 18
import javax.swing.event.DocumentListener;
......
78 79
        this.cboAuthenticationType.setSelectedIndex(0);
79 80
        
80 81
        this.cboAuthenticationType.addActionListener((ActionEvent e) -> {
81
            doAuthenticationOrUrlChange();
82
            changeListenerHelper.fireEvent();
82
            SwingUtilities.invokeLater(() -> {
83
                doAuthenticationOrUrlChange();
84
                changeListenerHelper.fireEvent();
85
            });
83 86
        });
84 87
        
85 88
        this.btnAuthenticationConfig.addActionListener((ActionEvent e) -> {
......
142 145
        this.config = null;
143 146
        this.txtServiceURL.setText("");
144 147
        cboAuthenticationType.setSelectedIndex(0);
148
        changeListenerHelper.fireEvent();
145 149
    }
146 150
    
147 151
    @Override
......
150 154
        this.txtServiceURL.setText(this.config.getServiceUrl());
151 155
        ListElement.setSelected(cboAuthenticationType, this.config.getFactory());
152 156
        this.doUpdateComponents();
157
        changeListenerHelper.fireEvent();
153 158
    }
154 159
    
155 160
    @Override
......
188 193
            return;
189 194
        }
190 195
        this.config.requestAuthenticationConfig();
196
        this.changeListenerHelper.fireEvent();        
191 197
    }
192 198

  
193 199
    private void doAuthenticationTest() {
......
216 222
    
217 223
    @Override
218 224
    public boolean isTheConfigurationValid() {
219
        return this.config!=null && !this.isDirty();
225
        return !this.isDirty() && this.config!=null && this.config.isFilled();
220 226
    }
221 227

  
222 228
    @Override

Also available in: Unified diff