File imgFile = null; try { imgFile = new File(imgFilename); tilebmpFile = imgFile.getCanonicalPath(); } catch (IOException e) { tilebmpFile = imgFilename; }
File imgFile = new File(imgFilename); tilebmpFile = imgFile.getCanonicalPath();
    public void importTileBitmap(String imgFilename, TileCutter cutter,                                 boolean createTiles) throws Exception    {        File imgFile = null;        try {            imgFile = new File(imgFilename);            tilebmpFile = imgFile.getCanonicalPath();        } catch (IOException e) {            tilebmpFile = imgFilename;        }        System.out.println("Importing " + imgFilename + "...");        importTileBitmap(ImageIO.read(imgFile.toURL()), cutter, createTiles);    }