public boolean loadRom()
public boolean loadRom(File rompath)
    public boolean loadRom()    {        JFileChooser jfc = new JFileChooser(AbstractRom.getDefaultDir());        jfc.setFileFilter(new FileFilter()        {            public boolean accept(File f)            {                if ((f.getAbsolutePath().toLowerCase().endsWith(".smc")                    || f.getAbsolutePath().toLowerCase().endsWith(".sfc")                    || f.getAbsolutePath().toLowerCase().endsWith(".fig") || f                    .isDirectory())                    && f.exists())                {                    return true;                }                return false;            }            public String getDescription()            {                return "SNES ROMs (*.smc, *.sfc, *.fig)";            }        });        if (jfc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION)        {            return loadRom(jfc.getSelectedFile());        }        else        {            return false;        }    }