This has been killing me for too long now
My paint is :
private BufferedImage img = null;
private void setBuffImage(){
try {
img = ImageIO.read(new URL("http://i.imgur.com/hxNYgK6.jpg"));
} catch (IOException e) {
}
}
private static final Font font1 = new Font("Gentium Basic", 0, 16);
private static final Color color1 = Color.WHITE;
@Override
public void onPaint(Graphics2D g) {
timeRan = System.currentTimeMillis() - this.timeBegan;
g.drawImage(img, 0, 335, null);
g.setFont(font1);
g.setColor(color1);
g.drawString("Rewards collected: "+picked,70, 425);
g.drawString("Farming XP(per hour): "+experienceTracker.getGainedXP(Skill.FARMING)+"("+experienceTracker.getGainedXPPerHour(Skill.FARMING)+")",280, 425);
g.drawString("Status: "+statusWrite(),130, 455);
g.drawString("Run time: " + ft(timeRan), 360, 385);
}
the img gets set on script start. But everytime I minimise my client and open it again, my paint has disappeared and will only come back after I move my cursor on screen.
I have reason to believe setBuffImage() is the culprit as I didn't have this problem before adding it.