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
Printable View
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
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));
It is working perfectly, i thought i tried that before but obviously i didnt..
Thanks a lot Michael
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.......
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.