• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextArea not painting

 
Derek Boring
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post the code?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic