Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2003

Tip: Looking for answers? Try searching our database.

Jbutton and text

Thread view: 
Nosnos - 24 Nov 2003 23:19 GMT
Hi,

I have a Jbutton with some dynamic text (that mean that i don't know how long will it), and i wish that in spite of being too long, there will not be some "..." appears. I want that the text be divided into several lines ....

See this ascii draw

I have ----------------
      |              |
      |Hi this is ...|
      |              |
      ----------------

I want ----------------
      |Hi this is    |
      |an example    |
      |              |
      ----------------

Thx
kevinc - 24 Nov 2003 22:46 GMT
Use HTML to render your label

> Hi,
>
[quoted text clipped - 15 lines]
>
> Thx
Alex Hunsley - 25 Nov 2003 14:07 GMT
> Use HTML to render your label

Ah! He's right, I'd forgotten about that possibility.
That very link that I posted before has an addendum at the bottom about
using html...
alex
Nosnos - 26 Nov 2003 21:42 GMT
> Use HTML to render your label
I can't, because I don't know which string will fit my button .... (so do'nt
know where to place my <br>)
Nosnos - 26 Nov 2003 22:40 GMT
> > Use HTML to render your label
> I can't, because I don't know which string will fit my button .... (so do'nt
> know where to place my <br>)

Sorry you right, with HTML render, text are automatically wrapping with
multiline support

Thx
Alex Hunsley - 25 Nov 2003 12:49 GMT
> Hi,
>
[quoted text clipped - 15 lines]
>
> Thx

Google is your friend.
http://www.javaworld.com/javaworld/javaqa/2000-03/01-qa-button.html


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.