working
This commit is contained in:
parent
931dab8e00
commit
7f2b98a554
|
@ -44,6 +44,7 @@ public class Statemachine {
|
||||||
public void reset() {
|
public void reset() {
|
||||||
stateChangeCounter = 0;
|
stateChangeCounter = 0;
|
||||||
currentState = state.IDLE;
|
currentState = state.IDLE;
|
||||||
|
onStateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleInput(char input) {
|
public void handleInput(char input) {
|
||||||
|
|
|
@ -32,6 +32,8 @@ public class SteuerungFrame extends JFrame implements StateChangeListener {
|
||||||
setDefaultCloseOperation(EXIT_ON_CLOSE);
|
setDefaultCloseOperation(EXIT_ON_CLOSE);
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
|
||||||
|
machine.reset();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mpd = new MPD("dampfradio.raum.chaostreff-dortmund.de", 6600);
|
mpd = new MPD("dampfradio.raum.chaostreff-dortmund.de", 6600);
|
||||||
player = mpd.getMPDPlayer();
|
player = mpd.getMPDPlayer();
|
||||||
|
@ -44,7 +46,6 @@ public class SteuerungFrame extends JFrame implements StateChangeListener {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
addKeyListener(new KeyAdapter() {
|
addKeyListener(new KeyAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void keyTyped(KeyEvent e) {
|
public void keyTyped(KeyEvent e) {
|
||||||
|
|
Loading…
Reference in New Issue