"D:\\Temp\\gs\\city1.shp";
String path3=
"D:\\Temp\\gs\\river.shp";
VectorLayer layer = LayerFactory.openShapeFile(path1,1);
layer.setDefaultStyle(new Symbol[]{new GeneralSymbol(),new LabelSymbol()});
VectorLayer layer2 = LayerFactory.openShapeFile(path2);
layer2.setDefaultStyle(new Symbol[]{new GeneralSymbol(Style2D.style2())});
VectorLayer layer3 = LayerFactory.openShapeFile(path3);
layer3.setDefaultStyle(new Symbol[]{new GeneralSymbol(Style2D.style1())});