Painting can only be done on the GUI thread. This is true of all
desktop java applications, not just the JXMapKit. If you need to do
some sort of calculation for your painting then I suggest you do that
calculation in another thread and write the results to some sort of
shared storage. then, in the painter, look at the results and draw
that to the screen.
- Josh
On Jul 11, 2008, at 7:01 AM,
jdnc-interest@... wrote:
> Hi,
> I have implemented a custom overlay painter for the JXMapViewer, the
> problem is that sometimes the paint method takes some seconds to
> finish (depending on how many objects there is to paint) and during
> that time the gui freezes, is there a way to paint on a different
> thread so the gui don't freeze and I can display a progressbar of
> some kind?
> [Message sent by forum member 'haraldak' (haraldak)]
>
>
http://forums.java.net/jive/thread.jspa?messageID=285983>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
jdnc-unsubscribe@...
> For additional commands, e-mail:
jdnc-help@...
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
jdnc-unsubscribe@...
For additional commands, e-mail:
jdnc-help@...