Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By Jodokus

Thread: jframe inside japplet

  1. #1
    ali.mohebbi is offline Member
    Join Date
    Jul 2011
    Posts
    1
    Rep Power
    0

    Default jframe inside japplet

    hi. i have pragram which based on jframe. now i want to run it on web page. it seems i must use japplet . what should i do ? can i have japplet window and many jframe windows and it can run on the web?

  2. #2
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default

    Lesson: Java Applets (The Java™ Tutorials > Deployment)
    This is "the" applet-tutorial, but it has much more then you need. Try to find launching-code examples, and info on the EDT (Event Dispatch Thread), and applet-restrictions.
    To just address your question: both JFrame and JApplet are top-level containers. Most programs consist basically of a tree made from nested JPanels (with content). The root of this tree is then contained in a JApplet (applet, able to run on the web) or JFrame (app). You can launch from your applet other free-floating JFrames. You can also make programs that are both applet and application.
    Fubarable likes this.
    No bug ever had to calculate its fitnessfunction.

Similar Threads

  1. JApplet in JFrame...
    By Rolf83 in forum Java Applets
    Replies: 8
    Last Post: 06-03-2011, 06:15 PM
  2. Is it possible to run an exe inside a JFrame?
    By alacn in forum Advanced Java
    Replies: 15
    Last Post: 08-16-2010, 05:42 AM
  3. Making a JApplet into a JFrame into a .jar
    By aqualicy in forum Java Applets
    Replies: 2
    Last Post: 05-14-2010, 05:29 AM
  4. JApplet.getGraphics() draws but JFrame doesn't
    By ChazZeromus in forum New To Java
    Replies: 5
    Last Post: 07-27-2009, 11:02 PM
  5. JFrame to JApplet or JApplet to JApplet
    By ramesh.8189 in forum AWT / Swing
    Replies: 13
    Last Post: 02-08-2009, 07:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •