I am not using Applet, the following is my code:
aButton.addActionListener(
public void actionPerformed(ActionEven
// ****** file .exe get excuted
try {
Runtime rt = Runtime.getRuntime();
try {
rt.exec("C:/Pajek/Pajek.ex
}
catch (IOException ex) {
}
//***** I want "C:/file_out.html" also appear in IE
}
catch (PropertyVetoException ex) {
ex.printStackTrace();
}
}
Main Topics
Browse All Topics





by: JavaInTheMorningPosted on 2004-07-26 at 12:55:32ID: 11640983
If you do it in an applet, you can use this line: ument(new URL(getCodeBase() + FILE_NAME),"_blank");
getAppletContext().showDoc