trainux Posted April 18, 2018 Posted April 18, 2018 Following the class in the API, would it be something like this? public void onPaint(Graphics g) throws java.lang.InterruptedException { Graphics2D gr = (Graphics2D)g; gr.setColor(Color.WHITE); gr.setFont(new Font("Arial", Font.PLAIN, 10)); gr.drawString("Script Choop", 25, 50); } I do not understand why it is not shown. Should I call him at some point? First of all, Thanks.
Deceiver Posted April 18, 2018 Posted April 18, 2018 put in ur class that extends Script @Override public void onPaint(Graphics2D paint) { paint.setFont(font); paint.setColor(color); } 1
trainux Posted April 18, 2018 Author Posted April 18, 2018 21 minutes ago, Deceiver said: put in ur class that extends Script @Override public void onPaint(Graphics2D paint) { paint.setFont(font); paint.setColor(color); } Thanks, solved. 1