I have a JFrame in which i am adding two JTextAreas and a JPanel.
In my JPanel i am drawing some graphics using basic
Java drawing functions.
The first TextArea is to act as an output prompt, and the second acts as the input field where i type commands. the program is a simple text based game.
The problem is that the JPanel paints and the graphics inside it show, but both of the textAreas do not paint until i type a command and press enter, or until i highlight text that's already in the compnent. i've already tried calling repaint(), repaintComponent(), and repaintComponents(). none of them seem to work. any help is greatly appreciated. thanks in advance.