WebLabel with line wrap

Request new features and improvements you want to see in WebLaF.
I will answer any request so don't hesitate and post it!

WebLabel with line wrap

Postby Endogen » Thu Nov 21, 2013 3:50 pm

I would love to have a WebLabel with line wrap. This is present in JXLabel from SwingX project:

Code: Select all
JXLabel label = new JXLabel(somelongtext);
label.setLineWrap(true);


And also Jide offers this functionality in there common layer lib. I could just use them but i would like to see this feature in WebLAF :)

Cheers,
Endo
Endogen
 
Posts: 14
Joined: Tue Jan 22, 2013 12:48 pm

Re: WebLabel with line wrap

Postby mgarin » Thu Nov 21, 2013 5:16 pm

I didn't try JXLabel before but i bet that wrap cannot work together with HTML content which JLabel supports by default in Swing. That is why it is always a separate component that allows line wrap.

There is a WebMultiLineLabel component in WebLaF which allows line wrap by default and also supports special "\n" as line separator in its text.
User avatar
mgarin
Site Admin
 
Posts: 223
Joined: Mon Apr 16, 2012 1:01 pm
Location: Russia, Saint-Petersburg


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron