Kommentar für die Entwicklung hinzugefügt

This commit is contained in:
Ivan
2014-11-07 21:29:05 +01:00
parent 99250750fa
commit a60e083dac
@@ -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));