Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Applet reloads with height and width as 0

Status
Not open for further replies.

Techieto

Programmer
Jul 19, 2002
3
0
0
US
I have an Applet embedded in a JSP file. When the JSP is loaded for the first time in IE, the Applet is displayed fine. I have a timer in the JSP that reloads the entire page at an interval of 5 minutes.

But each time it auto refreshes, the Applet is not displayed. I get to view only the gray area. When I view the Java Console, I get to see that the height and width co-ordinates are zero.

In my Java Applet program's start() function, I'm reading the height and width being passed from the Applet tag in the JSP file. Pressing Ctrl + f5 paints the Applet again and solves the problem. What could be done to make the auto refresh work to pick the right co-ordinates.

Thanking in Anticipation.

- Saju Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top