1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Button ValiderBtn = new Button(composite_1, SWT.NONE);
ValiderBtn.setBounds(180, 336, 86, 25);
ValiderBtn.setText("Valider");
ValiderBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
if (ProxyChech.getSelection()) {
System.setProperty("network.proxy_host", ProxyIpTxt.getText());
System.setProperty("network.proxy_port", ProxyPortTxt.getText());
}
if (AuthCheck.getSelection()) {
System.setProperty("network.proxy_user", ProxyUserTxt.getText());
System.setProperty("network.proxy_pass", ProxyPassTxt.getText());
}
FbBrowser.setUrl("http://www.robtex.com");
}
}); |
Partager