Forums Register Login

Writing a scrollable JLabel component

+Pie Number of slices to send: Send
I want to create a Swing component to use in my application. It should behave like a JLabel except that when the label size is not big enough to display the whole text, a small arrow icon is displayed. Hovering the mouse over the arrow causes the label to scroll, so you can see the rest of the text that was not previously displayed.
The component will be used to display html (as JLabel currently does.)
The component will be used to render cells in a JTable.
Am using jdk 1.4.2.

Please can you suggest some ways in which I might approach this.
D.
Arthur, where are your pants? Check under this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1098 times.
Similar Threads
Text boxes over an image
unable to get alignment and widths right
JLabel
inputText with vertical alignment with label
Display arrow button over label icon on focus
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:55:29.