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!

Jlabel with fixed width and flexible Height

Topcan5Nov 16 2010 — edited Nov 17 2010
I have a Jlabel with <html> tag in its text. I want to set the width to a fixed number and have the height be flexible. Please help...

JLabel lable = New JLabel();
lable.setText("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd");
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2010
Added on Nov 16 2010
9 comments
2,736 views