> Hello,
>
[quoted text clipped - 8 lines]
>
> Greetz
I don't think your question makes sense. If you're developing a Java
application for a PDA, I assume you are using J2ME since it is the API for
small devices like PDAs. But J2ME doesn't use AWT and none of its GUI
components have scrollbars as far as I know.
Or am I missing some key assumption behind your question?
--
Rhino
Selie Peter - 03 Apr 2006 08:17 GMT
>> Hello,
>>
[quoted text clipped - 18 lines]
> --
> Rhino
Well, Actually it's more a port from an existing application to PDA.
But not written in J2ME.
Remon van Vliet - 03 Apr 2006 16:18 GMT
>>> Hello,
>>>
[quoted text clipped - 21 lines]
> Well, Actually it's more a port from an existing application to PDA.
> But not written in J2ME.
If it's actually AWT (java.awt.*) we're talking about here then i dont think
you really understand it as well as needed. A panel wont spontaneously add
scrollbars if you happen to paint outside of it's component bounds. Your
ScrollPane approach is a valid way to do what you need to do, but be sure to
optimize the paint(Graphics g) method of your custom component to only draw
the visible part of your map if drawing is cpu intensive.
Remon van Vliet