Skip to content

Commit

Permalink
Refactored JScrollPaneWithSpeed Constructor
Browse files Browse the repository at this point in the history
Changed the `JScrollPaneWithSpeed` constructor to take a null argument for the viewport. This was done to ensure proper initialization of the scrolling pane.
  • Loading branch information
IllianiCBT committed Oct 28, 2024
1 parent f0099f1 commit 19f8d5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions MekHQ/src/mekhq/gui/utilities/JScrollPaneWithSpeed.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
*/
package mekhq.gui.utilities;

import java.awt.*;
import megamek.client.ui.swing.GUIPreferences;

import javax.swing.*;

import megamek.client.ui.swing.GUIPreferences;
import java.awt.*;

/**
* It's a JScrollPane that manages its scrollspeed based on the UI scale
Expand All @@ -34,7 +33,7 @@ public class JScrollPaneWithSpeed extends JScrollPane {
* @see JPanel#JPanel()
*/
public JScrollPaneWithSpeed() {
super();
super(null);
setScaleIncrement();
}

Expand Down

0 comments on commit 19f8d5d

Please sign in to comment.