Skip to content

Commit

Permalink
Remove prefs from HintManager.Hint
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Oct 27, 2024
1 parent 9ffda44 commit e972891
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions EOCV-Sim/src/main/java/com/formdev/flatlaf/demo/HintManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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;
}
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e972891

Please sign in to comment.