/* * TestTreeExplorer.java * * Created on September 20, 2002, 5:02 PM */ package cern.gp.explorer.test; import cern.gp.explorer.ListTableExplorer; import cern.gp.explorer.test.helpers.SimpleDemoBean; import cern.gp.nodes.NodeFactory; import cern.gp.windows.WindowUtils; import cern.gp.nodes.GPNode; /** * A simple test driver for the TreeTableExplorer * @todo test all functionality of the TreeableExplorer * * @version $Revision: 1.2 $ $Date: 2006/09/25 08:52:36 $ * @author Vito Baggiolini */ public class TestListTableExplorer { 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 ListTableExplorer expl = new ListTableExplorer(nodes); expl.setTableColumns(new String[] { "name", "value" }); // open the explorer in a NetBeans "Mode" WindowUtils.openInMode(expl, "TestListTableExplorer"); expl.requestFocus(); } }