private void doLoad() { if (fc.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { try { SerGrid sg = LoadSaver.load(fc.getSelectedFile().getAbsolutePath()); sGrid.setSerGrid(sg, gg.getGrid()); } catch (Exception e) { e.printStackTrace(); JOptionPane.showMessageDialog( this, "Sudoku game have not been saved!", "Error", JOptionPane.ERROR_MESSAGE); } } sGrid.repaint(); }