remove.addListener(this);
create.addListener(this);
+ remove.setDescription("After this garbage collector should"
+ + " be able to collect every component"
+ + " inside stressLayout.");
+
close.setDebugId("close");
remove.setDebugId("remove");
create.setDebugId("create");
create();
else if (event.getButton() == remove) {
main.removeComponent(stressLayout);
+ stressLayout = null;
+ System.out.println("main.getLayout()=" + main.getLayout());
+ System.out.println(Log.getMemoryStatistics());
} else if (event.getButton() == close) {
System.out.println("Before close, memory statistics:");
System.out.println(Log.getMemoryStatistics());