/** * Creates a tool panel with tabs for each tool tab. * * @param tools The tools to be presented in a tabbed pane. */ public ToolPanel(ToolTab[] tools) { this.details = new BrowserPane(); this.tabs = new JTabbedPane(); this.tools = tools; for(int i = 0; i < tools.length; i++) { this.tabs.addTab(tools[i].getName(), tools[i].getIcon(), tools[i]); } // add the change listener to the tab tabs.addChangeListener(new PaneChangeListener()); this.content = new JSplitPane(JSplitPane.VERTICAL_SPLIT, tabs, new JScrollPane(details)); content.setOneTouchExpandable(true); content.setResizeWeight(1.0); content.setDividerLocation(65535); // Proportional (1.0) doesn't work. this.setLayout(new BorderLayout()); this.add(BorderLayout.CENTER, content); }
ImageIcon logo = (ImageIcon)icons.getIcon("logo"); BrowserPane bp = new BrowserPane(); bp.setText(infotext); bp.setDefaultOpenMode(true);
BrowserPane addons = new BrowserPane(); addons.setText("Some of these settings require add-ons <br> available from the " +"<a href=\"http://www.activecomponents.org/download\">"
this.details = new BrowserPane(); details.setMinimumSize(new Dimension(400,100)); details.setPreferredSize(new Dimension(400,100));
details = new BrowserPane();
this.details = new BrowserPane(); details.setMinimumSize(new Dimension(400,100)); details.setPreferredSize(new Dimension(400,100));