Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Writing a scrollable JLabel component  RSS feed

 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!