diff --git a/HeatUp/src/de/heatup/ui/actionPanel/ActionControl.java b/HeatUp/src/de/heatup/ui/actionPanel/ActionControl.java index a3354ef..c6513cd 100644 --- a/HeatUp/src/de/heatup/ui/actionPanel/ActionControl.java +++ b/HeatUp/src/de/heatup/ui/actionPanel/ActionControl.java @@ -24,7 +24,15 @@ public class ActionControl { public static void setAction(String s){ System.out.println("prompt"); if(s.equals("smashing")){ - String str= "Bitte die Taste "+smashing.getKey()+" so schnell wie möglich drücken"; + char tmp = smashing.getKey(); + + + //Hier soll eine Methode rein, sowas wie setTaste() oder setKey(), welche in der Manipulationshändling Klasse + //Implemintiert ist. Damit das Programm weiß welche Tasten Ausgelost wurden. Man übergibt einfach den tmp Char weiter. + + + + String str= "Bitte die Taste "+tmp+" so schnell wie möglich drücken"; comp.setText(str); comp.setFont(new Font("Arial", Font.CENTER_BASELINE, 16)); comp.setBorder(new LineBorder(Color.BLACK, 1)); @@ -33,6 +41,11 @@ public class ActionControl { panel.setVisible(true); }else{ char []tmp = keysequence.getKeySequence(); + + + //Das selbe wie oben... + + String str="Bitte diese Tastenkombination \""+tmp[0]+" "+tmp[1]+" "+tmp[2]+" "+tmp[3]+"\" "+"so schnell wie möglich eingeben"; comp.setText(str); comp.setFont(new Font("Arial", Font.CENTER_BASELINE, 16));