04-29-2010 08:02 AM
I want to get latitude and longitude of address, and I used
but it throws IllegalStateException ,request is made on the event dispatch thread
how can I solve this?
is possible to use Locator.geocode in my application, because if I use Locator.geocode any where in the source it throws exception,
Solved! Go to Solution.
04-29-2010 08:31 AM
From the javadocs:
An application must request geocode information outside of the event dispatch thread.
Start a worker thread and make the call from the thread.