Skip to content

Commit

Permalink
Make methods public in HintManager
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia committed Oct 27, 2024
1 parent d798228 commit 9ffda44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions EOCV-Sim/src/main/java/com/formdev/flatlaf/demo/HintManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ public class HintManager
{
private static final List<HintPanel> hintPanels = new ArrayList<>();

static void showHint( Hint hint ) {
public static void showHint( Hint hint ) {
HintPanel hintPanel = new HintPanel( hint );
hintPanel.showHint();

hintPanels.add( hintPanel );
}

static void hideAllHints() {
public static void hideAllHints() {
HintPanel[] hintPanels2 = hintPanels.toArray( new HintPanel[hintPanels.size()] );
for( HintPanel hintPanel : hintPanels2 )
hintPanel.hideHint();
}

//---- class HintPanel ----------------------------------------------------

static class Hint
public static class Hint
{
private final String message;
private final Component owner;
private final int position;
private final String prefsKey;
private final Hint nextHint;

Hint( String message, Component owner, int position, String prefsKey, Hint nextHint ) {
public Hint( String message, Component owner, int position, String prefsKey, Hint nextHint ) {
this.message = message;
this.owner = owner;
this.position = position;
Expand Down Expand Up @@ -231,7 +231,7 @@ private void initComponents() {

//---- class BalloonBorder ------------------------------------------------

private static class BalloonBorder
public static class BalloonBorder
extends FlatEmptyBorder
{
private static int ARC = 8;
Expand Down

0 comments on commit 9ffda44

Please sign in to comment.