Throw this in your onpaint to show cursor crosshair:
public void onPaint(Graphics2D gr) {
int x = getMouse().getPosition().x;
int y = getMouse().getPosition().y;
gr.drawLine(0, y, 765, y);
gr.drawLine(x, 0, x, 503);
}
To add strings, use the following: gr.drawString(String, x coordinate, y coordinate);
for example:
gr.drawstring("Fish cooked: " + fishescooked (or whatever variable you would use for this), 50, 100);
For time elapsed, use something like this:
public void onStart() {
startTime = System.currentTimeMillis();
}
public void onPaint(Graphics2D gr) {
long timeElapsed = System.currentTimeMillis() - startTime;
gr.setFont(new Font("Arial", Font.BOLD, 16));
long second = (timeElapsed / 1000) % 60;
long minute = (timeElapsed / (1000 * 60)) % 60;
long hour = (timeElapsed / (1000 * 60 * 60)) % 24;
gr.setColor(Color.BLACK);
gr.drawString(String.format("%02d:%02d:%02d", hour, minute, second), 337, 374);
}