importTileBitmap(ImageIO.read(new URL(imgFilename)), tileWidth,
importTileBitmap(ImageIO.read(imgFile.toURL()), tileWidth,
    public void importTileBitmap(String imgFilename, int tileWidth,            int tileHeight, int spacing, 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(new URL(imgFilename)), tileWidth,                tileHeight, spacing, createTiles);    }