how to change background for a JTextArea object

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to have a JTextArea with a background white and text should be
readonly.

The way I tried is something like this:
JTextArea text = new JTextArea();
text.setEditable(false);
text.setBackground(Color.white);

In Java this works ok the backround is set to white.
In J# the background stays grey.

Thanks
 
Back
Top