Skip to content

Commit

Permalink
Maintain highlighting even when pausing/resuming.
Browse files Browse the repository at this point in the history
  • Loading branch information
isalin committed Oct 7, 2018
1 parent baaf0b5 commit 723b691
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TBbard/launch4j/TBbard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<launch4jConfig>
<dontWrapJar>false</dontWrapJar>
<headerType>gui</headerType>
<jar>C:\Users\isalin\Desktop\TBbard_v1.10.jar</jar>
<outfile>C:\Users\isalin\Desktop\TBbard_v1.10.exe</outfile>
<jar>C:\Users\isalin\Desktop\TBbard_v1.11.jar</jar>
<outfile>C:\Users\isalin\Desktop\TBbard_v1.11.exe</outfile>
<errTitle></errTitle>
<cmdLine></cmdLine>
<chdir>.</chdir>
Expand Down
4 changes: 4 additions & 0 deletions TBbard/src/bard/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ public void itemStateChanged(ItemEvent arg0) {
{
@Override
public void actionPerformed(ActionEvent e) {
taText.requestFocusInWindow();
if(countdownThread != null && countdownThread.isAlive()) {
return;
}
Expand Down Expand Up @@ -673,6 +674,7 @@ public void run() {
}
};
playingThread.start();// We're using a new thread to be able to access Stop still.
taText.requestFocusInWindow();
}
});

Expand All @@ -684,6 +686,7 @@ public void run() {
@Override
public void actionPerformed(ActionEvent e) {
//n.running = false;
taText.requestFocusInWindow();
if (playingThread != null){
playingThread.stop();
}
Expand All @@ -692,6 +695,7 @@ public void actionPerformed(ActionEvent e) {
}

btPlayButton.setText("Play");
taText.requestFocusInWindow();
//n.releaseHeldKey();
}
});
Expand Down

0 comments on commit 723b691

Please sign in to comment.