• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

open a notepad from applet

 
basa rajesh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I gave full permissions in my policyfile.I want to open a "notepad" just by pressing a button on an applet.How to do this ?
 
Chris Brown
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this-
try {
Runtime.getRuntime().exec("notepad.exe");
} catch (IOException e) {
System.err.println("Couldn't fine notepad.exe");
}

------------------
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic