Results 1 to 3 of 3
  1. #1
    FatWhale is offline Member
    Join Date
    Jan 2011
    Posts
    4
    Rep Power
    0

    Question Custom scrollbar possible?

    Is it possible to customize a scrollbar in java? Like, replace the up and down buttons with images. I was trying to do it earlier, all I could so is change the color of it. :(
    I'm making a video player and I already finished the ui for that. But now i have to make some sort of menu to pick a movie where i want scrolling. The look of the normal scroll bar does not go well with the GUI already make, it seems really out of place. Thats why i wanted to customize it.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,300
    Rep Power
    20

    Default

    Is it possible to customize a scrollbar in java? Like, replace the up and down buttons with images.
    You will need to write your own ScrollBarUI, possibly extending BasicScrollBarUI or MetalScrollBarUI, and override createIncreaseButton / createDecreaseButton.

    db

  3. #3
    FatWhale is offline Member
    Join Date
    Jan 2011
    Posts
    4
    Rep Power
    0

Similar Threads

  1. ScrollBar in a JList
    By lupo in forum AWT / Swing
    Replies: 2
    Last Post: 05-20-2010, 10:42 PM
  2. JList with ScrollBar
    By Psyclone in forum AWT / Swing
    Replies: 5
    Last Post: 02-12-2010, 04:02 AM
  3. scrollbar issue
    By kumar_gemi in forum New To Java
    Replies: 9
    Last Post: 05-06-2009, 06:57 AM
  4. how to add scrollbar in netbeans
    By kumar_gemi in forum NetBeans
    Replies: 1
    Last Post: 03-12-2009, 06:50 PM
  5. Using java.awt.Scrollbar
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-03-2008, 09:19 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •