Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Style TextArea

871375Aug 2 2011 — edited Aug 4 2011
Hello,

I am trying to change the background color of the textarea using in-line css.
responseBox = new TextArea();
responseBox.setStyle("-fx-font: 14px 'Courier New';-fx-background-color: #000000;");
The background color should be black, but it remains as defult (white).

What am i doing wrong?

How do I change the color of the font within TextArea?

Gabor
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2011
Added on Aug 2 2011
3 comments
463 views