Results 1 to 3 of 3
  1. #1
    Omarero is offline Member
    Join Date
    Oct 2008
    Posts
    25
    Rep Power
    0

    Default [SOLVED] how can i get thumb in a scroll bar??

    am creating a scroll bar that extends MetalScrollBarUI
    i want to know the postion of the thumb; which means for example i need to know that i clicked twice on the increase button

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Can you explain your question a bit more. I'm not clear with what you are saying, thumb? On what contest?

  3. #3
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    830
    Rep Power
    6

    Default

    Hi,
    Even Iam not aware of thumb.But,when i gone thru the API ,I found out this method.Please check whether it is useful for you or not.

    BasicScrollBarUI (Java 2 Platform SE v1.4.2))

    getThumbBounds
    protected Rectangle getThumbBounds()Return the current size/location of the thumb.
    Warning : the value returned by this method should not be be modified, it's a reference to the actual rectangle, not a copy.


    Returns:
    The current size/location of the thumb.
    See Also:
    setThumbBounds(int, int, int, int)
    Ramya:cool:

Similar Threads

  1. problem with scroll bar
    By r.gnanaprakasam in forum AWT / Swing
    Replies: 0
    Last Post: 04-22-2009, 01:24 PM
  2. Scroll message
    By getkiran in forum Java Applets
    Replies: 1
    Last Post: 03-05-2009, 04:29 AM
  3. code hint scroll bar ?
    By tryit in forum Eclipse
    Replies: 3
    Last Post: 04-28-2008, 07:07 AM
  4. Scroll thumb on the ScrollPanel
    By SteM in forum AWT / Swing
    Replies: 3
    Last Post: 12-05-2007, 06:35 PM
  5. Jtextarea and scroll
    By ziniestro in forum AWT / Swing
    Replies: 2
    Last Post: 06-01-2007, 03:59 PM

Posting Permissions

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