why can't I add a JApplet inside another container? [message #107951] |
Fri, 23 September 2005 18:55 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05258 seconds