Great tutorial. Very useful! But i don't know if i'm doing this the right way. Do i need to set a background with: g.Fill or can i just create an image with everything in it.
Because when i do so, my TimeRan will not be displayed because the background overlays the TimeRan. Wich we dont want.
public void onPaint(Graphics2D g) {
timeRan = System.currentTimeMillis() - this.timeBegan;
g.drawString(ft(timeRan), 158, 369);
g.setColor(Color.BLACK);
g.drawImage(bg, 8, 334, null);
}
Thanks alot,
OSRS Sebastian.