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.

JTextArea to look like JLabel

843805Jan 18 2007 — edited Jan 22 2007
I did do some searching....go easy on me (first posting of a question)

I have a textarea on my frame I use like a status bar.....giving the user hints on what they can/should do based on the applications state. I'd like using the JTextArea because I don't have to concern myself with how long of a string I put in it.....in the worst case the user sees some scrollbars.

I would like to remove the etched look from the text area though. Is that possible? Basically I want a JTextArea that looks visually just like a JLabel. I've tried using JLabel, but when the text to be displayed is dynamic, it makes sizing the label next to impossible. The functionality of the JTextArea seems to work the best, if I can get that etched/raised look supressed.

thanks to all and many thanks to the plethra of info I've found in the forumns already!!!!

JJ

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 19 2007
Added on Jan 18 2007
6 comments
1,108 views