A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
Swing / AWT / SWT
change text area background color at run time.
Joined: Jan 23, 2008
Feb 04, 2012 19:39:46
I have text area which is initially disabled on a button click i am enabling it and I am trying to change background color at run time but its not working. Can any body help me? I am doing the below:
notesJTextArea.setEditable(editable); Color color = Color.white; notesJTextArea.setBackground(color);
Joined: Jun 09, 2003
Feb 04, 2012 20:05:27
works OK for me.
Joined: May 03, 2008
Feb 04, 2012 21:50:08
To get better help sooner, post a
SSCCE (Short, Self Contained, Compilable and Executable)
example that demonstrates the problem.
There are no new questions, but there may be new answers.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: change text area background color at run time.
Validation message not working same for Input Text and Text Area
Add a background image to a JPanel & JTextArea
Change Text area's Limited Text Color
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015