Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes CONVERTING an application to an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "CONVERTING an application to an applet" Watch "CONVERTING an application to an applet" New topic
Author

CONVERTING an application to an applet

Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
hi,
how do i convert an application to an applet..?
Billybob Marshall
Ranch Hand

Joined: Jan 27, 2004
Posts: 202
There isn't a magic answer for this. Re-engineer it.
Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
the methods i use for the application, would it still be the same as the methods i would use for the applet?
the only difference is the init() method in the applet is it not?
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
Put your main display in a JPanel (or Panel). Then, you just instantiate that Panel differently depending on whether you're running as an applet or application.
brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
For this application:

the applet conversion can be:
Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
oh cool thanks you guys!
 
GeeCON Prague 2014
 
subject: CONVERTING an application to an applet