Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » why can't I add a JApplet inside another container?
why can't I add a JApplet inside another container? [message #107951] Fri, 23 September 2005 18:55 Go to next message
Eclipse UserFriend
Originally posted by: adrian.cheerful.com

Hi,

I am quite new to Swing programming so excuse me if this is a stupid
question, but why can't I drop a JApplet (or a control extending from
JApplet) into another container, like JFrame or a JPanel? If I write the
code manually, the code works fine. Why is there such a restriction?

Thanks,
Adrian
Re: why can't I add a JApplet inside another container? [message #107995 is a reply to message #107951] Fri, 23 September 2005 20:11 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

JApplet are top-level controls. They aren't meant to be in another
control. They are meant to be imbedded directly into a browser page. The
browser then controls the life-cycle of the applet.

Adrian Pang wrote:
> Hi,
>
> I am quite new to Swing programming so excuse me if this is a stupid
> question, but why can't I drop a JApplet (or a control extending from
> JApplet) into another container, like JFrame or a JPanel? If I write the
> code manually, the code works fine. Why is there such a restriction?
>
> Thanks,
> Adrian
>
>

--
Thanks,
Rich Kulp
Re: why can't I add a JApplet inside another container? [message #610859 is a reply to message #107951] Fri, 23 September 2005 20:11 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

JApplet are top-level controls. They aren't meant to be in another
control. They are meant to be imbedded directly into a browser page. The
browser then controls the life-cycle of the applet.

Adrian Pang wrote:
> Hi,
>
> I am quite new to Swing programming so excuse me if this is a stupid
> question, but why can't I drop a JApplet (or a control extending from
> JApplet) into another container, like JFrame or a JPanel? If I write the
> code manually, the code works fine. Why is there such a restriction?
>
> Thanks,
> Adrian
>
>

--
Thanks,
Rich Kulp
Previous Topic:Restricting my control to appear only in AWT/Swing?
Next Topic:VE code generation customization, palette, beanInfo questions
Goto Forum:
  


Current Time: Fri Sep 20 08:53:18 GMT 2024

Powered by FUDForum. Page generated in 0.05258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top