Jump to content

Paint not working in script.


Recommended Posts

Posted (edited)

Heyyo,

 

I am trying to use the onPaint() method in my script but it is not showing up for some reason.

@Override
public void onPaint(Graphics2D g) {       
            timeRan = System.currentTimeMillis() - this.timeBegan;
            g.drawString(ft(timeRan), 1, 1);
            currentXp = skills.getExperience(Skill.WOODCUTTING);
            xpGained = currentXp - beginningXp;
            g.drawString("" + xpGained, 1, 1);
} 
        

Is there something wronge with that code? 

 

Thanks in advance

BR c0nan

Edited by c0nan

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...