Resize in the page

I want the applet to be full screen and could be resized when the page is resized. Is there any way to do that? Do I need to add javascript code to do that?Thanks
[176 byte] By [tmdfana] at [2007-10-3 3:19:27]
# 1

Hello,

My applet takes 100% of an HTML frame both in IE and Mozilla. When I resize the browser the applet resizes automatically.

<!-- This part is for IE -->

<OBJECT

WIDTH= "100%"

HEIGHT= "100%"

ALIGN= middle

VSPACE= 0

HSPACE= 0 >

<!-- This part is for Netscape -->

<EMBED

WIDTH= "100%"

HEIGHT = "100%"

ALIGN= middle

VSPACE = 0

HSPACE = 0

...

></EMBED>

Regards,

Attila

attilaracza at 2007-7-14 21:11:25 > top of Java-index,Desktop,Core GUI APIs...
# 2
This part is added before or after <body> tag?
tmdfana at 2007-7-14 21:11:25 > top of Java-index,Desktop,Core GUI APIs...
# 3

It is in the <body> tag:

<HTML>

<HEAD>

</HEAD>

<BODY topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" >

<!-- This part is for IE -->

<OBJECT

WIDTH= "100%"

HEIGHT= "100%"

ALIGN= middle

VSPACE= 0

HSPACE= 0 >

<COMMENT>

<!-- This part is for Netscape -->

<EMBED

WIDTH= "100%"

HEIGHT = "100%"

ALIGN= middle

VSPACE = 0

HSPACE = 0>

</EMBED>

</COMMENT>

</OBJECT>

</BODY>

</HTML>

attilaracza at 2007-7-14 21:11:25 > top of Java-index,Desktop,Core GUI APIs...