Fixed scrollers speed

The scrollers in the sprite selector and the xml in map editors were
slow, now it's fixed.

Also withdrawned a useless semicolon.
This commit is contained in:
DelvalletQuentin
2015-03-13 15:02:58 +01:00
parent d5eab7f17d
commit 0eee3c646b
2 changed files with 7 additions and 3 deletions

View File

@@ -168,6 +168,7 @@ public class SpriteChooser extends JDialog {
JPanel wrapper = new JPanel();
wrapper.setLayout(new BorderLayout());
JScrollPane scroller = new JScrollPane(pane);
scroller.getVerticalScrollBar().setUnitIncrement(16);
scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
wrapper.add(scroller, BorderLayout.CENTER);
// wrapper.add(buttonPane, BorderLayout.SOUTH);