Hello,

I've got a screen with scrollbars and mobile objects (icons) moving in 
it.  When a mobile object goes out of the screen, I want the scrollbars 
enlarge appropiately.

As far as I know, the solution is to override the getPreferredSize() 
method to take into account the new necessary size, and then call to 
revalidate() method (I've got a JPanel).

However when the mobile object goes left or up out of the screen, its 
coordinates are now negative, and I don't know how to do a scroll in 
order to do the objects visible (since the JViewPort position is in (0, 
0) coordinates.

Please, if you have some idea about how to solve this problem, or some 
source code I can see to fix this situation, tell me.

Thanks a lot.



_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to