public Container createDemo() { Tabs t = new Tabs(); t.addTab("Tree", createTreeDemo()); t.addTab("Spinner", createSpinnerDemo()); t.addTab("Table", createTableDemo()); return t; }
/** * Method to take an array of chart components, place them in a tab then return a form that wraps * everything up * * @param formTitle The title of the form * @param titles contains the titles of the tabs * @param components the tab components * @return Form containing the tab */ protected Form wrap(String formTitle, String[] titles, Component[] components) { Tabs tabs = new Tabs(); for (int i = 0; i < titles.length; i++) { tabs.addTab(titles[i], components[i]); } return wrap(formTitle, tabs); }