mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-29 07:45:37 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user