Skip to content

Commit

Permalink
Constants
Browse files Browse the repository at this point in the history
  • Loading branch information
berk76 committed Apr 7, 2021
1 parent 1e11cf4 commit adaba81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/cz/webstones/words/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public class Main extends javax.swing.JFrame implements IObserver {
private static final long serialVersionUID = 5213584438445872718L;
private static final Logger LOGGER = Logger.getLogger(Main.class.getName());

private static final String btnShowText = "Show";
private static final String btnShowAndPlayText = "Show & Play";
private static final String BTN_SHOW = "Show";
private static final String BTN_SHOW_AND_PLAY = "Show & Play";

private JLabel lblNativeWordValue;
private JLabel lblForeignWordValue;
Expand Down Expand Up @@ -679,7 +679,7 @@ public void windowClosing(java.awt.event.WindowEvent evt) {
btnWrong.addActionListener(e -> btnWrongActionPerformed());

btnShowAndPlay.setFont(Service.createFont());
btnShowAndPlay.setText(btnShowAndPlayText);
btnShowAndPlay.setText(BTN_SHOW_AND_PLAY);
btnShowAndPlay.addActionListener(e -> btnShowAndPlayActionPerformed());

cbbCategory.setFont(Service.createFont());
Expand Down Expand Up @@ -1096,12 +1096,12 @@ private void btnToolDeleteActionPerformed() {
private void tbtToolDirectionActionPerformed() {
if (tbtToolDirection.isSelected()) {
dictDirection = Direction.SHOW_FOREIGN;
btnShowAndPlay.setText(btnShowText);
btnShowAndPlay.setText(BTN_SHOW);
nextRelative(0);
play(dict.getWord());
} else {
dictDirection = Direction.SHOW_NATIVE;
btnShowAndPlay.setText(btnShowAndPlayText);
btnShowAndPlay.setText(BTN_SHOW_AND_PLAY);
nextRelative(0);
}

Expand Down

0 comments on commit adaba81

Please sign in to comment.