I'm receiving this fantastic stack:
Exception in thread "AWT-EventQueue-0"
java.lang.ArrayIndexOutOfBoundsException: 0
at test.Visual.selection(Visual.java:156)
at test.Menu.actionPerformed(Menu.java:161)
Visual.java -- line 156 is while statement
vidergrille();
decochage();
String[] temp=map.file.reader();
int index=map.sudoku.random(0,temp.length);
switch(levelofdifficulty){
case 1:
while(!(Integer.parseInt(temp[index].substring(85,temp[index].length()))<=5000)){
index=map.sudoku.random(0,temp.length);
}
break;
Menu.java -- line 161 is map.supanel
else if(evt.getSource()==m123){
try {
map.supanel.selection(1);
} catch (IOException ex) {
Logger.getLogger(Menu.class.getName()).log(Level.SEVERE, null, ex);
}
}