SPARK-1250 increased setBlockIncrement to 200 for faster scrolling when clicking between the arrow and the scrollbutton on JScollPanel

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12125 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Holger Bergunde
2011-03-16 11:34:09 +00:00
committed by holger.bergunde
parent 181e42355b
commit 33dbe1caeb
4 changed files with 4 additions and 4 deletions

View File

@ -219,7 +219,7 @@ public abstract class ChatRoom extends BackgroundPanel implements ActionListener
textScroller.setAutoscrolls(true);
// Speed up scrolling. It was way too slow.
textScroller.getVerticalScrollBar().setBlockIncrement(50);
textScroller.getVerticalScrollBar().setBlockIncrement(200);
textScroller.getVerticalScrollBar().setUnitIncrement(20);
chatWindowPanel = new JPanel();

View File

@ -204,7 +204,7 @@ public final class ContactList extends JPanel implements ActionListener,
contactListScrollPane.setAutoscrolls(true);
contactListScrollPane.setBorder(BorderFactory.createEmptyBorder());
contactListScrollPane.getVerticalScrollBar().setBlockIncrement(50);
contactListScrollPane.getVerticalScrollBar().setBlockIncrement(200);
contactListScrollPane.getVerticalScrollBar().setUnitIncrement(20);
_reconnectPanel = new ReconnectPanel();

View File

@ -160,7 +160,7 @@ public final class GroupChatParticipantList extends JPanel implements
JScrollPane scroller = new JScrollPane(participantsList);
// Speed up scrolling. It was way too slow.
scroller.getVerticalScrollBar().setBlockIncrement(50);
scroller.getVerticalScrollBar().setBlockIncrement(200);
scroller.getVerticalScrollBar().setUnitIncrement(20);
scroller.setBackground(Color.white);
scroller.getViewport().setBackground(Color.white);

View File

@ -311,7 +311,7 @@ public class ChatTranscriptPlugin implements ChatRoomListener {
window.setEditorKit(new HTMLEditorKit());
window.setBackground(Color.white);
final JScrollPane pane = new JScrollPane(window);
pane.getVerticalScrollBar().setBlockIncrement(50);
pane.getVerticalScrollBar().setBlockIncrement(200);
pane.getVerticalScrollBar().setUnitIncrement(20);
mainPanel.add(pane, BorderLayout.CENTER);