I just tested it and it's not ma recursive loop which creates this. This simple example shows it:
Code:
PropertySheet propertySheet = new PropertySheet();
propertySheet.setTheme("table");
SimplePropertyList list = new SimplePropertyList("debug");
SimplePropertyList map = new SimplePropertyList("map");
map.addProperty(new SimpleProperty<String>(String.class, "checklayers", "true"));
list.addProperty(map);
SimplePropertyList rect = new SimplePropertyList("rect");
rect.addProperty(new SimpleProperty<String>(String.class, "collision", "true"));
rect.addProperty(new SimpleProperty<String>(String.class, "position", "true"));
list.addProperty(rect);
SimplePropertyList xml = new SimplePropertyList("rect");
xml.addProperty(new SimpleProperty<String>(String.class, "animations", "true"));
list.addProperty(xml);
SimplePropertyList list2 = new SimplePropertyList("gui");
map.addProperty(new SimpleProperty<String>(String.class, "map", "bla/a/path"));
propertySheet.getPropertyList().addProperty(list);
propertySheet.getPropertyList().addProperty(list2);
ScrollPane scrollPane = new ScrollPane(propertySheet);
add(scrollPane);
but this class into a widget like a resizable frame and it will throw warnings of layout loop that are detected. Dunno what to do to behonest. Is it the PropertySheet which does not like that many sub lists? or is it the TreeTable?
_________________
Current Projects:
Mr. Hat I
Vegan Vs. ZombiesProjects:RadicalFish Engine - Build on top of Slick2D, Ideas, Bugs? Open an Issue ticket!