I did a project on vehicle tracking system using GPS and GSM at my college.
In the project we used to get the latitude and longitude value of vehicle and show it in Google map.
The code we used for creating a frame with Google location is Map code.java
The frame is created by creating an Object of the class and calling the method
createmap(String x,String y);
Where, x-latitude and y-longitude.