• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

JComboBox's Scrollbar - increasing width

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic