How to change G4P font size?

There was a solution for this problem, but the discussion has been deleted. So how do I change the size of the text in text fields and labels?

Thank you.

Comments

  • Add the import

    import java.awt.Font;
    

    Create a font

    Font font = new Font("Arial", Font.PLAIN, 16);
    

    Set the font for a textfield

    textfield.setFont(font);
    

    where textfield is a GTextField object

  • Wow, that was a quick answer. Works like a charm. Thank you very much!

Sign In or Register to comment.