Code:
public void lvlSelect() {
String[] lvls = {"1","2","3","4","5"};
int x = JOptionPane.showOptionDialog(null, "Welches Level?"
,null,JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, lvls, lvls[currentLevel]);
}