Hello,
I have a JFrame in fullscreen exclusive mode which I am trying to display text on in certain positions (damage above monsters heads in an RPG). I have managed to display a JTextArea by adding it to a JPanel and adding the JPanel to the JFrame, and painting the JTextArea in my rendering loop…But it uses border layouts and I need to be able to set the position of the text to anywhere.
Any help would be appreciated
Why do you need a JTextArea? Directly draw using Graphics2D.drawString() method.
Wow ! smacks head…of course !
haha thank you
You are welcome ;D
As you seem to be unfamiliar with directly rendering Strings, you might need to familiarize yourself with the FontMetrics class too.
Thanks, i’ll check it out