Results 1 to 8 of 8
Thread: Run Applet From GUI?
- 05-13-2009, 07:16 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 9
- Rep Power
- 0
- 05-13-2009, 09:13 PM #2
Very little is impossible, but why on earth would you want to do this?
db
- 05-13-2009, 09:29 PM #3
Stick the contents of the applet in a Frame instead.
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 05-14-2009, 04:05 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can't we execute a html from the UI? db and OD, what you guys think of that?
- 05-14-2009, 08:39 AM #5
I think it's a clunky approach to a non-problem.
In the worst case, which is if the applet is contained in a third-party jar, one could construct an instance of the Applet, invoke its init() method and add it to a Frame (or for a JApplet, set its contentPane to be the contentPane of a JFrame).
If the source is available, it should be trivial to refactor the game to be housed in a JPanel which can then be set as the contentPane for either a JApplet or a JFrame, which gives the maximum flexibility and is the preferred development route for any game or other GUI which may be required to be run either as a local application or in a browser window, as an applet.
db
- 05-14-2009, 09:00 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Okay db, I agreed with your comment. As you said it could be a real mess working on with third part jar files and stuff.
- 05-15-2009, 08:55 AM #7
Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
How To Ask Questions The Smart Way
- 05-15-2009, 12:11 PM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Hmmm, some cases I've done that. Actually for simple applications, I didn't use it for a larger/complex applications yet.
Similar Threads
-
applet to jsp
By abinesh.s in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 03-27-2009, 07:33 AM -
Calling another applet on click of button in one applet
By niteshwar.bhardwaj in forum Java 2DReplies: 1Last Post: 02-19-2009, 12:54 PM -
Need with an applet
By maggie_2 in forum Java AppletsReplies: 6Last Post: 09-21-2008, 08:07 PM -
First Applet HELP????
By nvidia in forum New To JavaReplies: 0Last Post: 08-13-2007, 10:11 PM -
Applet, To center text and To open I engage in a dialog in an Applet
By Marcus in forum Java AppletsReplies: 4Last Post: 06-08-2007, 06:15 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks