• Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet & Application Reference

 
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: 22134
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.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!