Sun Oct 16, 2011 1:17 am
// The paint function handles all the paint requests to draw things to the screen
public void paint(Graphics g){
bg.clearRect(0, 0, appWidth, appHeight); // Refresh the background first
// GUI PLACEMENT
bg.setColor(Color.orange);
bg.fillRect(640, 685, 260, 70); // PROGRESS QUICKVIEW
bg.setColor(Color.red);
bg.fillRect(740, 655, 80, 30); // SERVER TIME
//////// MORE CODE HERE /////////
// Finally output the prepared screen
g.drawImage(buffer,0,0,this);
}
Fri Nov 11, 2011 10:03 pm
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.