mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
InstallerJDialog: smoother scrolling
This commit is contained in:
parent
866f5d065a
commit
8922541898
@ -141,11 +141,12 @@ public abstract class InstallerJDialog<T> extends JDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
JScrollPane s = new JScrollPane();
|
JScrollPane scrollPane = new JScrollPane();
|
||||||
s.setViewportView(contribTable);
|
scrollPane.setViewportView(contribTable);
|
||||||
s.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
|
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
|
||||||
s.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
|
||||||
pane.add(s, BorderLayout.CENTER);
|
scrollPane.getVerticalScrollBar().setUnitIncrement(7);
|
||||||
|
pane.add(scrollPane, BorderLayout.CENTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
pane.add(Box.createHorizontalStrut(10), BorderLayout.WEST);
|
pane.add(Box.createHorizontalStrut(10), BorderLayout.WEST);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user