Question: I'm coming from a Opengl project and I need to be able to place elements on my screen and that they stay there.

I'm creating an applet that is the same size as the original opengl project (800\*480) and I want to be able to place a button 150\*50 at the coordinates 100,200.

everything works fine util an events triggers a setSize, then suddenly layout() is triggered and that make my button move to the center of the screen...

how can I work around that ?

I'm currently overriding the layout() of my JPanel but it doesn't feel right ^^

Answer: 
No need to use Google map for getting distance of two cities.
All you need to have is getting latitude and longitude of two cities.
This is how I did.
Coordinates is native Blackberry class

```
Coordinates ahmedabad=new Coordinates(23.03333,72.61667, Float.NaN);
Coordinates delhi=new Coordinates(28.66667,77.21667, Float.NaN);

dist=ahmedabad.distance(delhi);

```
You could try following code:

```
from geopy.distance import geodesic

ahmedabad = (23.03333,72.61667)
delhi = (28.66667,77.21667)

print(geodesic(origin, dest).meters)
print(geodesic(origin, dest).kilometers)
print(geodesic(origin, dest).miles)

```