|
-
March 10th, 1999, 07:11 AM
#1
How to prevent an applet getting refreshed when browser is resized?
Hello ,
How to prevent an applet getting refreshed when browser is resized?
The problem is like this - I have an applet with a custom component .
The Internal layouting mechanism of the component is gridbag . When
there is an application triggered repainting there is no problem.
But When the browser is resized , a system triggered repainting occurs
and hence recursive layouting was done resulting in the component getting haywire.
Any help in this regard is greatly appreciated .
regards,
Krishna
-
March 31st, 1999, 03:10 PM
#2
Re: How to prevent an applet getting refreshed when browser is resized?
hi, there:
I have the same question as u do, Did u come up with an idea?
Thanxxx
Vivian
-
May 9th, 1999, 11:38 PM
#3
Re: How to prevent an applet getting refreshed when browser is resized?
Hi
i am also facing same kind of problem.......
-
May 12th, 1999, 05:14 AM
#4
Re: How to prevent an applet getting refreshed when browser is resized?
Hi there,
When a browser is resized then it automatically calls the update(..) and paint(..) events of the applet. So what you have to do is override the these two methods and use a flag so that on any subsequent calls
to these paints does not result in the original update(..) and paint(.) getting executed.
If the problem that you are facing is due to layout problems of a component inside the applet you can try
overriding the validate and invalidate methods with appropriate code. You also have to take care of the
individual paint and update methods of the components themselves I think.
-
November 11th, 1999, 01:35 AM
#5
Re: How to prevent an applet getting refreshed when browser is resized?
hi!!
Which browser are you using.
Jawwad.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|