Den 09.06.2011 23:54, skrev Edvin Syse:
This works great. Then I try to do the same programatically:

ScrollPane scrollPane = new
ScrollPane(ScrollPane.ScrollBarPolicy.FILL_TO_CAPACITY,
ScrollPane.ScrollBarPolicy.FILL_TO_CAPACITY);
Accordion.setHeaderData(scrollPane, "Sider");
scrollPane.add(new PageTreeView());
leftMenu.getPanels().add(scrollPane);

And after peeking at the DefaultProperty annotation in ScrollPane, I now feel a bit stupid, but atleast my app is working :)

scrollPane.setView(new PageTreeView());

-- Edvin

Reply via email to