Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsugu committed Feb 21, 2024
1 parent 313bc5f commit ade14e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/carcassonne/Carcassonne.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import carcassonne.control.MainController;
import carcassonne.view.util.GameMessage;
import carcassonne.view.util.GameMessageL18n;

/**
* Carcassonne main class.
Expand Down Expand Up @@ -47,7 +46,7 @@ private static void setLookAndFeel() {
UIManager.setLookAndFeel(lookAndFeel.getClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException exception) {
LoadTextCarcassonne prop = new LoadTextCarcassonne();
GameMessageL18n.showError(prop.get("LOOK_AND_FEEL_ERROR") + exception.getMessage() + prop.get("CLOSING_BRACKET"));
GameMessage.showError(prop.get("LOOK_AND_FEEL_ERROR") + exception.getMessage() + prop.get("CLOSING_BRACKET"));
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/carcassonne/view/util/GameMessageL18n.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void showGameInfo(String about, String title) {
JOptionPane.showMessageDialog(null, about, title, JOptionPane.DEFAULT_OPTION, ImageLoadingUtil.SPLASH.createHighDpiImageIcon());
}

/*
public static void showError(String messageText) {
show(messageText, JOptionPane.ERROR_MESSAGE);
}
Expand All @@ -38,4 +39,5 @@ private static void show(String messageText, int type) {
public static Icon getGameIcon() {
return new Tile(TileType.Null).getScaledIcon(GAME_ICON_SIZE);
}
*/
}

0 comments on commit ade14e4

Please sign in to comment.