JFrame Question


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: JFrame Question

  1. #1
    Join Date
    Feb 2004
    Posts
    34

    JFrame Question

    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?
    www.saterasoft.cjb.net

    Come and play the games.....

  2. #2
    Join Date
    Jun 2004
    Posts
    12
    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

  3. #3
    Join Date
    May 2004
    Posts
    219
    You should be able to use appletviewer to launch it.

    http://www.codeguru.com/forum/showth...hreadid=279029

    Instead of using a bat, you could probably write a loader class that runs the applet in appletviewer.

  4. #4
    Join Date
    Feb 2004
    Posts
    808
    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
    The 6th edict:
    "A thing of reference thing can hold either a null thing or a thing to any thing whose thing is assignment compatible with the thing of the thing" - ArchAngel, www.dictionary.com et al.
    JAR tutorial GridBag tutorial Inherited Shapes Inheritance? String.split(); FTP?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center