From e972891f17d98113690c314ff243c8a2903aa9fd Mon Sep 17 00:00:00 2001 From: Sebastian Erives Date: Sun, 27 Oct 2024 14:58:16 -0600 Subject: [PATCH] Remove prefs from HintManager.Hint --- .../com/formdev/flatlaf/demo/HintManager.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/EOCV-Sim/src/main/java/com/formdev/flatlaf/demo/HintManager.java b/EOCV-Sim/src/main/java/com/formdev/flatlaf/demo/HintManager.java index 4bc22c8..92fd655 100644 --- a/EOCV-Sim/src/main/java/com/formdev/flatlaf/demo/HintManager.java +++ b/EOCV-Sim/src/main/java/com/formdev/flatlaf/demo/HintManager.java @@ -46,7 +46,7 @@ public static void showHint( Hint hint ) { } public static void hideAllHints() { - HintPanel[] hintPanels2 = hintPanels.toArray( new HintPanel[hintPanels.size()] ); + HintPanel[] hintPanels2 = hintPanels.toArray(new HintPanel[0]); for( HintPanel hintPanel : hintPanels2 ) hintPanel.hideHint(); } @@ -58,14 +58,12 @@ public static class Hint private final String message; private final Component owner; private final int position; - private final String prefsKey; private final Hint nextHint; - public Hint( String message, Component owner, int position, String prefsKey, Hint nextHint ) { + public Hint( String message, Component owner, int position, Hint nextHint ) { this.message = message; this.owner = owner; this.position = position; - this.prefsKey = prefsKey; this.nextHint = nextHint; } } @@ -234,12 +232,12 @@ private void initComponents() { public static class BalloonBorder extends FlatEmptyBorder { - private static int ARC = 8; - private static int ARROW_XY = 16; - private static int ARROW_SIZE = 8; - private static int SHADOW_SIZE = 6; - private static int SHADOW_TOP_SIZE = 3; - private static int SHADOW_SIZE2 = SHADOW_SIZE + 2; + private static final int ARC = 8; + private static final int ARROW_XY = 16; + private static final int ARROW_SIZE = 8; + private static final int SHADOW_SIZE = 6; + private static final int SHADOW_TOP_SIZE = 3; + private static final int SHADOW_SIZE2 = SHADOW_SIZE + 2; private final int direction; private final Color borderColor;