wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes TextArea doesn't allow changing backgroundColor and font when non-editable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TextArea doesn Watch "TextArea doesn New topic
Author

TextArea doesn't allow changing backgroundColor and font when non-editable

Patty Wang
Greenhorn

Joined: Sep 20, 2002
Posts: 2
I ran into a problem that if I set my TextArea non-editable, I can't change its background color or font, -- before or after I set it as non-editable. I can't use JTextArea because my boss thinks Swing components use too much memory. Did anybody run into the same TextArea problem as me before and is there any solution? I am using JRE1.2.2
Thanks a lot!
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
Could you paste some code on how you are trying to change the font and the background?
this works for me (jdk 1.4.1).


you (and your boss) should think about using 1.4.1. Swing is a lot faster in this current release and several known bugs are fixed.
Chantal
Patty Wang
Greenhorn

Joined: Sep 20, 2002
Posts: 2
It turned out that Sun fixed it in JRE1.3.1_XX and I was using JRE1.3.0.
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TextArea doesn't allow changing backgroundColor and font when non-editable
 
Similar Threads
Dynamically setting TextArea size
Khalid Programming Ex. 12.1
How to set TextArea to bold using default font?
enabled, but non-editable combobox foreground color
non-editable in textarea