Including a JApplet application in a JFrame application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aurel

    #1

    Including a JApplet application in a JFrame application

    Hi,

    I developped an applet (JApplet class) and now I'd like to integrate it in
    another application which is a JFrame one...

    Does anyone can help ?

    Thanks in advance...

    AureL




  • Tjerk Wolterink

    #2
    Re: Including a JApplet application in a JFrame application

    Aurel wrote:[color=blue]
    > Hi,
    >
    > I developped an applet (JApplet class) and now I'd like to integrate it in
    > another application which is a JFrame one...
    >
    > Does anyone can help ?
    >
    > Thanks in advance...
    >
    > AureL
    >
    >
    >
    >[/color]

    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.

    Comment

    • Ian Shef

      #3
      Re: Including a JApplet application in a JFrame application

      Tjerk Wolterink <tjerk@wolterin kwebdesign.com> wrote in news:41b89510$0 $8904
      $abc4f4c3@news. wanadoo.nl:
      [color=blue]
      > Aurel wrote:[color=green]
      >> Hi,
      >>
      >> I developped an applet (JApplet class) and now I'd like to integrate it in
      >> another application which is a JFrame one...[/color][/color]
      <snip>[color=blue]
      >
      > 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.
      >[/color]
      ....and call the methods init(), start(), stop(), and destroy().

      ....and realize that some methods of Applet won't do anything useful [for
      example, getAppletContex t() 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 *

      Comment

      Working...