public void loadPuzzle(ActionEvent e) throws NoSuchMethodException { int returnVal = fc.showOpenDialog(this); if (returnVal != JFileChooser.APPROVE_OPTION) { return; } file = fc.getSelectedFile(); Map m = new HashMap(); m.put("file", file); mgr.switchScreens(m); }
private void showPuzzle(Map m) { mgr.switchScreens(m); }