mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
committed by
holger.bergunde
parent
181e42355b
commit
33dbe1caeb
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user