Click to See Complete Forum and Search --> : JFrame Question
Sir Sapo
07-10-2004, 05:13 PM
I have an applet that I want to be able to run as an exectuable jar file. Do I have to convert it to a JFrame application so it has a main method , or can I just place it in a JFrame application somehow, like as an object in a container?
OmarB
07-20-2004, 01:13 AM
i dont think that you can do that
you can put the buttons and stuff on a panel and
then use the panel in an Applet or a Frame
Drain
07-20-2004, 01:18 AM
You should be able to use appletviewer to launch it.
http://www.codeguru.com/forum/showthread.php?s=&threadid=279029 :D
Instead of using a bat, you could probably write a loader class that runs the applet in appletviewer.
cjard
07-20-2004, 08:23 AM
i'm with drain.. it would be better to launch your applet in appletviewer or a web browser, because these containers know how to perform specific methods like getCodeBase().. if you just add an Applet to a Frame (you can do this because applet extends panel, an in-frame component) i'm not sure what the method calls would return
devx.com
Copyright Internet.com Inc. All Rights Reserved