ui: Final fields
This commit is contained in:
@@ -52,13 +52,13 @@ import org.pushingpixels.substance.internal.SubstanceSynapse;
|
|||||||
@Singleton
|
@Singleton
|
||||||
public class RuneLiteSplashScreen
|
public class RuneLiteSplashScreen
|
||||||
{
|
{
|
||||||
private RuneLiteProperties runeLiteProperties = new RuneLiteProperties();
|
private final RuneLiteProperties runeLiteProperties = new RuneLiteProperties();
|
||||||
|
|
||||||
public JFrame frame;
|
public JFrame frame;
|
||||||
public JPanel panel = new JPanel();
|
public final JPanel panel = new JPanel();
|
||||||
private JLabel messageLabel;
|
private JLabel messageLabel;
|
||||||
private JLabel subMessageLabel;
|
private JLabel subMessageLabel;
|
||||||
private JProgressBar progressBar = new JProgressBar();
|
private final JProgressBar progressBar = new JProgressBar();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is not done in the constructor in order to avoid processing in case the user chooses to not load
|
* This is not done in the constructor in order to avoid processing in case the user chooses to not load
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ public class ColorPanel extends JPanel
|
|||||||
|
|
||||||
private final int size;
|
private final int size;
|
||||||
|
|
||||||
private BufferedImage image;
|
private final BufferedImage image;
|
||||||
private Point targetPosition;
|
private Point targetPosition;
|
||||||
private int selectedY;
|
private int selectedY;
|
||||||
private boolean forceRedraw;
|
private boolean forceRedraw;
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ public class ColorValuePanel extends JPanel
|
|||||||
{
|
{
|
||||||
private static final int DEFAULT_VALUE = ColorUtil.MAX_RGB_VALUE;
|
private static final int DEFAULT_VALUE = ColorUtil.MAX_RGB_VALUE;
|
||||||
|
|
||||||
private ColorValueSlider slider = new ColorValueSlider();
|
private final ColorValueSlider slider = new ColorValueSlider();
|
||||||
private JTextField input = new JTextField();
|
private final JTextField input = new JTextField();
|
||||||
|
|
||||||
private Consumer<Integer> onValueChanged;
|
private Consumer<Integer> onValueChanged;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user