Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jtextarea stays blank when typing in it - Please help!

Status
Not open for further replies.

rvy2k

Programmer
Jun 29, 2001
39
US
Hi all,

When I try to type into a Jtextarea, no text appears at all. The area stays blank.
I know it is there because I did a select all + copy, then pasted it into notepad and it was there.
I tried revalidate() and repaint() but it didnot work.

Anybody had the same problem?

Thanks!
 
Did you set the JTextArea to uneditable/unabled through the method setEditable(false)/setEnabled(false)? If you didn't and your JTextArea is in a JPanel, try using updateUI() in the JPanel.

There should be no other reasons as for why it will not work..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top