if (!atts.getValue("file").equals("null")) t.loadFromFile(new File(atts.getValue("file")),Texture.MM_LINEAR,Texture.FM_LINEAR,true);
if (atts.getValue("URL")!=null && !atts.getValue("URL").equals("null")){ t.loadFromFile(new URL(atts.getValue("URL")),Texture.MM_LINEAR,Texture.FM_LINEAR,true); } if (atts.getValue("file")!=null && !atts.getValue("file").equals("null")) t.loadFromFile(new File(atts.getValue("file")).toURI().toURL(),Texture.MM_LINEAR,Texture.FM_LINEAR,true);
    private TextureState buildTexture(Attributes atts) throws SAXException {        TextureState t=renderer.getTextureState();//            t.setTexture(TextureManager.loadTexture(atts.getValue("file"),//                Texture.MM_LINEAR,//                Texture.FM_LINEAR,//                true));        try {            if (!atts.getValue("file").equals("null"))                t.loadFromFile(new File(atts.getValue("file")),Texture.MM_LINEAR,Texture.FM_LINEAR,true);        } catch (MalformedURLException e) {            throw new SAXException("Bad file name: " + atts.getValue("file"));        }        t.setEnabled(true);        return t;    }