Multiline « Button « Java Swing Q&A





1. Multiline Button in java    coderanch.com

2. Multiline Button    coderanch.com

Hi, One way of displaying multi-line text into a button is by using HTML within the text.. ie jButton1.setText("< HTML >This is Java ranch< / HTML >"); However the preferred size of a button is always dependent on the font and the insets used. Using this approach also overides any set fonts that may have been already attached to the button. ...

3. Multiline Button    coderanch.com

4. Multiline text Button    coderanch.com

5. multiline text on button- urgent    coderanch.com

I/m posting this topic again.I need a button to have label on diff lines(like say click and here on 2 lines).Its possible with swing if I use html tag etc but in my architecture I cannot use swing components. can I use couple of awt components and give the look and function of button and work it out Thanks for the ...