loading a file and getting its contents crashes on me.
Posted
by Richards
on Stack Overflow
See other posts from Stack Overflow
or by Richards
Published on 2010-05-14T09:59:02Z
Indexed on
2010/05/14
10:04 UTC
Read the original article
Hit count: 250
private class Lytterklasse implements ActionListener{
public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter( "Sudoku Tekstfiler", "txt"); chooser.setFileFilter(filter); int returnVal = chooser.showOpenDialog(getParent()); String filnavn=chooser.getName(); In innfil=new In(filnavn); int type=innfil.inInt(); int lengdeBoks=innfil.inInt(); int breddeBoks=innfil.inInt(); for(int i=0;i
}
Why does this crash on me? I cant figure it out. Please help!
© Stack Overflow or respective owner