Re: Including a JApplet application in a JFrame application

From: Ian Shef (invalid_at_avoiding.spam)
Date: 12/09/04

  • Next message: Odd-R.: "Servlet from jsp"
    Date: Thu, 09 Dec 2004 19:30:40 GMT
    
    

    Tjerk Wolterink <tjerk@wolterinkwebdesign.com> wrote in news:41b89510$0$8904
    $abc4f4c3@news.wanadoo.nl:

    > Aurel wrote:
    >> Hi,
    >>
    >> I developped an applet (JApplet class) and now I'd like to integrate it in
    >> another application which is a JFrame one...
    <snip>
    >
    > Notice that JApplet is an subclass of JComponent. So all you have to do is
    > treat JApplet as an component, just add it to an Container.
    >
    ...and call the methods init(), start(), stop(), and destroy().

    ...and realize that some methods of Applet won't do anything useful [for
    example, getAppletContext() and play()].

    -- 
    Ian Shef     805/F6      *    These are my personal opinions    
    Raytheon Company         *    and not those of my employer.
    PO Box 11337             * 
    Tucson, AZ 85734-1337    * 
    

  • Next message: Odd-R.: "Servlet from jsp"

    Relevant Pages

    • Re: Can I combine GUI & Applet?
      ... a JApplet (just add the components to the JApplet, ... Yes, I did that to produce an applet from the command line utility/GUI application, pausing only to strip out a lot of no-longer needed stuff such as mainand all the menu-bar related code. ... However, there are a few cases, mostly small applications, where it would be nice to be able to execute the same code as a command line utility, a stand-alone GUI application or embed it in a web page. ...
      (comp.lang.java.programmer)
    • Re: Metal theme in an applet.
      ... you can set a metal theme in a JApplet. ... When I run* your applet** I see red. ... Communication in such a precise environment ... http://www.PhySci.org/ Open-source software suite ...
      (comp.lang.java.gui)
    • Two basic questions considering Swing
      ... I have a button and I want to use it to stop my JApplet. ... I can't quote the entire stack thread cause it gets lost out of the screen, ... I'm not trying out my applet in a browser, ...
      (comp.lang.java.programmer)
    • Two basic questions considering Swing
      ... I have a button and I want to use it to stop my JApplet. ... I can't quote the entire stack thread cause it gets lost out of the screen, ... I'm not trying out my applet in a browser, ...
      (comp.lang.java.help)
    • Some LnF theme changer (was: Metal theme in an applet.)
      ... > This one time, in band camp, I subclassed Applet instead of JApplet ... thread asking for your testing. ... [And ..isn't it time SourceFourge programmers ...
      (comp.lang.java.gui)