} //GEN-LAST:event_btnImportCheatDBActionPerformed private void btnOnOffActionPerformed([email protected] evt) { //GEN-FIRST:event_btnOnOffActionPerformed if (btnOnOff.Selected) { if (taCheats.Text.Empty) { JpcspDialogManager.showInformation(this, java.util.ResourceBundle.getBundle("pspsharp/languages/pspsharp").getString("CheatsGUI.strNoCheatsEntered.text")); btnOnOff.Selected = false; return; } if (cheatsThread == null) { taCheats.Editable = false; taCheats.BackgRound = UIManager.getColor("Panel.backgRound"); btnClear.Enabled = false; btnImportCheatDB.Enabled = false; cheatsThread = new CheatsThread(this); cheatsThread.Priority = Thread.MIN_PRIORITY; cheatsThread.Name = "HLECheatThread"; cheatsThread.Daemon = true; cheatsThread.Start(); } } else { if (cheatsThread != null) { taCheats.Editable = true; taCheats.BackgRound = UIManager.getColor("TextArea.backgRound"); btnClear.Enabled = true; btnImportCheatDB.Enabled = true; cheatsThread.exit(); } } } //GEN-LAST:event_btnOnOffActionPerformed
public virtual void onCheatsThreadEnded() { cheatsThread = null; }