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!

How can I use TextArea with Background Picture ?

843804Nov 2 2004 — edited Nov 2 2004
I want design TextArea with Background Picture


JTextArea j= new JTextArea();
j.setBackground("abc.jpg"); // I known java dosen't support this method

but I want did it. Just like MSN or ICQ can change its skin .

How can I do ??

Comments

MiPa
Answer
Have you tried it this way?
scene.getStylesheets().add(FXMLSample1.class.getResource("/layouttests/fxml/sample1/FXMLSample1RootPane.css").toExternalForm());	
Marked as Answer by 661933 · Sep 27 2020
661933
Nope, hadn't tried that. Worked like a charm! Thank you very much!
1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 30 2004
Added on Nov 2 2004
3 comments
453 views