Diese Seite ist noch nicht übersetzt. Sie wird in ihrer Originalsprache angezeigt.
Choice()
One of a few options, e.g. a difficulty: left and right go through them while it has the focus, a click, Enter, Space or A takes the next one. Override whenChanged(String) with what it chooses.
Choice level = new Choice("Difficulty", "Easy", "Normal", "Hard") {
public void whenChanged(String option) {
difficulty = option;
}
};
Examples
Syntax
Java
new Choice(text, options)