public VPFConfig(VPFLayer layer) { if (layer != null && layer.lst != null) { this.layer = layer; this.layerName = layer.getName();  DefaultMutableTreeNode top = new DefaultMutableTreeNode("VPF Data Libraries"); try { createNodes(top, layer.lst); } catch (FormatException fe) { Debug.output("Caught FormatException reading data: " + fe.getMessage()); } init(top); }
public VPFConfig(String[] dataPaths, String layerName) { this(dataPaths, null, layerName);
    public VPFConfig(VPFLayer layer) {        if (layer != null && layer.lst != null) {            this.layer = layer;            this.layerName = layer.getName();            //Create the nodes.            DefaultMutableTreeNode top = new DefaultMutableTreeNode("VPF Data Libraries");            try {                createNodes(top, layer.lst);            } catch (FormatException fe) {                Debug.output("Caught FormatException reading data: "                        + fe.getMessage());            }            init(top);        }    }