public TiledFileFilter(String filter, String desc) { exts = new LinkedList(); this.desc = desc; String[] ext = filter.split(","); for (int i = 0; i < ext.length; i++) { exts.add(ext[i].substring(ext[i].indexOf('.') + 1)); }
public TiledFileFilter() { desc = "Tiled files"; exts = new LinkedList(); exts.add("tmx"); exts.add("tmx.gz"); exts.add("tsx");
    public TiledFileFilter(String filter, String desc) {    	exts = new LinkedList();    	this.desc = desc;    	String[] ext = filter.split(",");    	for (int i = 0; i < ext.length; i++) {    		exts.add(ext[i].substring(ext[i].indexOf('.') + 1));    	}    }