From 723b69174454e56f7db54a4fd755330d58dd6e7d Mon Sep 17 00:00:00 2001 From: Isak Lindgren Date: Sat, 6 Oct 2018 12:24:38 +0200 Subject: [PATCH] Maintain highlighting even when pausing/resuming. --- TBbard/launch4j/TBbard.xml | 4 ++-- TBbard/src/bard/GUI.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/TBbard/launch4j/TBbard.xml b/TBbard/launch4j/TBbard.xml index e83a076..e97b7ea 100644 --- a/TBbard/launch4j/TBbard.xml +++ b/TBbard/launch4j/TBbard.xml @@ -2,8 +2,8 @@ false gui - C:\Users\isalin\Desktop\TBbard_v1.10.jar - C:\Users\isalin\Desktop\TBbard_v1.10.exe + C:\Users\isalin\Desktop\TBbard_v1.11.jar + C:\Users\isalin\Desktop\TBbard_v1.11.exe . diff --git a/TBbard/src/bard/GUI.java b/TBbard/src/bard/GUI.java index 4fdb5b0..a0f85e3 100644 --- a/TBbard/src/bard/GUI.java +++ b/TBbard/src/bard/GUI.java @@ -576,6 +576,7 @@ public void itemStateChanged(ItemEvent arg0) { { @Override public void actionPerformed(ActionEvent e) { + taText.requestFocusInWindow(); if(countdownThread != null && countdownThread.isAlive()) { return; } @@ -673,6 +674,7 @@ public void run() { } }; playingThread.start();// We're using a new thread to be able to access Stop still. + taText.requestFocusInWindow(); } }); @@ -684,6 +686,7 @@ public void run() { @Override public void actionPerformed(ActionEvent e) { //n.running = false; + taText.requestFocusInWindow(); if (playingThread != null){ playingThread.stop(); } @@ -692,6 +695,7 @@ public void actionPerformed(ActionEvent e) { } btPlayButton.setText("Play"); + taText.requestFocusInWindow(); //n.releaseHeldKey(); } });