Print Page | Close Window

paint image

Printed From: CertCities.com Forums
Forum Name: Java Certs
Forum Discription: Discuss SCJP, SCJD, SCWCD and other Java certifications and related technologies here.
URL: http://certcities.com/forums/forum_posts.asp?tid=3872
Printed Date: 22 October 2007 at 7:57pm


Topic: paint image

Posted by: raz9
Subject: paint image
Date Posted: 10 September 2006 at 7:03am

public void paint(Graphics graphics) {
try {
     synchronized (image1) {
       graphics.drawImage (image1,x,y,ANCHOR);
     }      ;       
   } catch(Throwable e){ }
}
after I do:x-=10;
I get the picture with no white place - how can I get the right side of the map with no color?




Print Page | Close Window