1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
if(evt.getSource()==jButton1)
{
if(jTextField1.getText().compareToIgnoreCase("")!=0){
try {
start(jTextField1.getText());
} catch (IOException ex) {
Logger.getLogger(window_swing.class.getName()).log(Level.SEVERE, null, ex);
}
}
else
{
JOptionPane.showMessageDialog(this,
"Vous devez taper une adresse ip VALIDE!",
"Erreur d'execution",
JOptionPane.WARNING_MESSAGE);
}
}
if ((choix)&&(evt.getSource()==jButton1)) {
radiobuttonchoix1(jTextField1.getText());
}
if ((choix=false)&&(evt.getSource()==jButton1)) {
radiobuttonchoix2(jTextField1.getText());
} |
Partager