This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JComboBox's  Scrollbar - increasing width Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "JComboBox Watch "JComboBox New topic
Author

JComboBox's Scrollbar - increasing width

Sainath Veepuri
Ranch Hand

Joined: Sep 25, 2003
Posts: 49
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

Joined: Dec 16, 2003
Posts: 73
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 ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JComboBox's Scrollbar - increasing width
 
Similar Threads
scrollbar
How do i disable scrollbars in List?
Scrollbar height/width control
Is There a Vertical Scrollbar for the selectManyListbox?
Calculating width of JList vertical scrollbar