• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet & Application Reference  RSS feed

 
Theresa Duick
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working with 2 classes. One is an applet & the other an application. In the applet, when a button is pressed, I want to run the application. Is this possible? Or must the application class be revised to be an applet also?
 
paul wheaton
Trailboss
Posts: 22283
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will work. A lot of people have done this. Applets ignore main() and applications ignore the applet methods.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!