How can I set in the midst?

Without any evidence otherwise, I’d guess you’ve overriden the paint method of something like a JFrame and are painting directly to it. The problem is, frames have decoration (a border and title bar for example), which takes up space inside the frame… Technically, this is correct. The rectangle is painted in the center of frame, … Read more

Drawing a line/path on Google Maps

Thank you for your help. At last I could draw a line on the map. This is how I done it: /** Called when the activity is first created. */ private List<Overlay> mapOverlays; private Projection projection; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); linearLayout = (LinearLayout) findViewById(R.id.zoomview); mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); mapOverlays = … Read more