Results 1 to 5 of 5
  1. #1
    ehochedez is offline Member
    Join Date
    Aug 2009
    Posts
    14
    Rep Power
    0

    Default Hide scrollBars from scrollPanes..

    Hi,

    I would like to know if it is possible to hide the scrollbars from the scrollPanes? (not remove them but hide them and let them usable with the wheel of the mouse for example) And if it is how to do that?

    Thanks,

    Eric

  2. #2
    Michael Dunn is offline Member
    Join Date
    Jul 2008
    Posts
    62
    Rep Power
    0

    Default

    the JScrollPane constructor lets you set their property
    e.g. JScrollPane.VERTICAL_SCROLLBAR_NEVER

    but the MouseWheelListener doesn't work (in 1.6).

    MouseWheelListener works OK like this

    scrollPane.getVerticalScrollBar().setPreferredSize (new Dimension(0,0));

  3. #3
    ehochedez is offline Member
    Join Date
    Aug 2009
    Posts
    14
    Rep Power
    0

    Default

    It is working perfectly, i thought i tried that before but obviously i didnt..

    Thanks a lot Michael

  4. #4
    Jyoti Joshi is offline Member
    Join Date
    Jun 2010
    Posts
    2
    Rep Power
    0

    Default

    Hi... i m Jyoti...
    I have a problem with sroll in scrollpane having a JTable which refreshes after every 5 seconds. The problem is that if we drag the scroll at any position, after 5 seconds when JTable updates, the scroll of the scrollbar moves at begining and hence a small flickering of JTable appears. Please geve me some suggessions about this problem as early as possible. I m waiting for your reply.........Reply must.......

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Joyti, welcome to the forum. Since you have your own question, I ask that you post it in its own new thread rather than resurrect an old thread. You may link to the old thread of course if you wish.

    Locking.

Similar Threads

  1. How to Hide cursor
    By priya in forum Java Software
    Replies: 1
    Last Post: 12-09-2010, 09:39 PM
  2. hide one frame under another
    By marodia in forum AWT / Swing
    Replies: 7
    Last Post: 08-25-2009, 01:23 PM
  3. I am having trouble with scrollbars in netbeans 5.5.1
    By ineedhelp in forum New To Java
    Replies: 2
    Last Post: 03-13-2009, 06:56 PM
  4. How to hide Download Link
    By tarzan1234 in forum Advanced Java
    Replies: 1
    Last Post: 02-11-2009, 06:11 PM
  5. How to set SCROLLBARS to my APPLET???
    By nsharath in forum New To Java
    Replies: 2
    Last Post: 02-09-2009, 09:59 AM

Posting Permissions

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