Click to See Complete Forum and Search --> : How to prevent an applet getting refreshed when browser is resized?


kRISHNA
March 10th, 1999, 06:11 AM
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

Krishna
March 10th, 1999, 06:11 AM
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

vivian
March 31st, 1999, 02:10 PM
hi, there:


I have the same question as u do, Did u come up with an idea?


Thanxxx


Vivian

Vivian
March 31st, 1999, 02:10 PM
hi, there:


I have the same question as u do, Did u come up with an idea?


Thanxxx


Vivian

astkar
May 9th, 1999, 11:38 PM
Hi
i am also facing same kind of problem.......

tdsinha
May 12th, 1999, 05:14 AM
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.

Jawwad Hussain
November 11th, 1999, 12:35 AM
hi!!
Which browser are you using.

Jawwad.