1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
while(true){
try{
wm un = new wm();
un.analyse(new URL(httpLink.getText()), lieux.getSelectedIndex()+3);
if(miniPowa.getText().compareTo("") == 0){
}
else{
Object resu =un.findMoshu(Integer.parseInt(miniPowa.getText()),Integer.parseInt(maxiPowa.getText()));
if(resu != null){
Runtime.getRuntime().exec(lecteurPath.getText() + " " + sonPath0.getText());
SwingUtilities.invokeLater(new Runnable(){ public void run(){JOptionPane.showMessageDialog(null, "Alerte");});
}
}
}catch(Exception d){
d.printStackTrace(); }
}
} |