Skip to content

Commit

Permalink
scroll speed
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 14, 2024
1 parent 08360e0 commit 6725f0f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/org/cubewhy/celestial/gui/pages/GuiPlugins.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ private void addTabs() {
panelWeave.setLayout(new VerticalFlowLayout());
JPanel panelAgents = new JPanel();
panelAgents.setLayout(new VerticalFlowLayout());
this.tab.addTab("Weave", new JScrollPane(panelWeave, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
this.tab.addTab("Agents", new JScrollPane(panelAgents, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED));
JScrollPane sp1 = new JScrollPane(panelWeave, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
sp1.getVerticalScrollBar().setUnitIncrement(30);
JScrollPane sp2 = new JScrollPane(panelAgents, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
sp2.getVerticalScrollBar().setUnitIncrement(30);
this.tab.addTab("Weave", sp1);
this.tab.addTab("Agents", sp2);
for (RemoteAddon addon : addons) {
if (addon.getCategory() == RemoteAddon.Category.WEAVE) {
addPlugin(panelWeave, addon, WeaveMod.modFolder);
Expand Down

0 comments on commit 6725f0f

Please sign in to comment.