use of cern.gp.explorer.ListExplorer in project ACS by ACS-Community.
the class TestListExplorer method main.
public static void main(String[] args) throws Exception {
int numberOfBeans = 6;
// create the beans you want to display
SimpleDemoBean[] beans = new SimpleDemoBean[numberOfBeans];
for (int ix = 0; ix < numberOfBeans; ix++) {
beans[ix] = new SimpleDemoBean("bean_" + ix);
}
// create nodes associated with the beans
GPNode[] nodes = NodeFactory.createNode(beans);
// create the explorer and set the columns it shall display
ListExplorer expl = new ListExplorer(nodes);
// open the explorer in a NetBeans "Mode"
WindowUtils.openInMode(expl, "TestListExplorer");
expl.requestFocus();
}
Aggregations