• Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox's Scrollbar - increasing width  RSS feed

 
Sainath Veepuri
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
would any one please let me know how to increase the width of the vertical scrollbar displayed on the dropdown of the JCombobox.

Thanks,
Sai
 
Sham Grandhe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sainath,

indreasing the width of the scrollbar is a very long process ill just tell how try this out.

first you have to create the an inner class for the BasicComboxUI and them for the BasicComboPopup there you have to implement the createScroller method, in which u'll have to create scrollPane for which again u'll have implement a BasicScrollPaneUI. in which you have to again implement the BasicScrollBarUI for which you have to write the paintTrack() method there you have to se the rectangle bounds then ull get that. best of luck


regards
sham
[ February 26, 2005: Message edited by: kumar shyam ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!