bHome = JSynopticPanels.resources.getBox("home", this);
bSave = JSynopticPanels.resources.getBox("save", this);
bBack= JSynopticPanels.resources.getBox("prev", this);
bNext = JSynopticPanels.resources.getBox("next", this);
JToolBar toolsBar = new JToolBar();
toolsBar.add(bHome);
toolsBar.add(bSave);
toolsBar.addSeparator();
toolsBar.add(bBack);
toolsBar.add(bNext);
bBack.setEnabled(!backward.isEmpty());
bNext.setEnabled(!forward.isEmpty());
targetToNodeTable = new HashMap();
// Create help tree
rootNode = new HelpNode();
rootTreeNode = new DefaultMutableTreeNode();
DefaultTreeModel treeModel = new DefaultTreeModel(rootTreeNode);
helpTree = new JTree();
helpTree.setModel(treeModel);
helpTree.setRootVisible(false);
helpTree.setShowsRootHandles(true);
helpTree.addTreeSelectionListener(this);
// Renderer
DefaultTreeCellRenderer helpTreeRenderer = (DefaultTreeCellRenderer) helpTree.getCellRenderer();
helpTreeRenderer.setOpenIcon(resources.getIcon("folderIcon"));
helpTreeRenderer.setClosedIcon(resources.getIcon("folderIcon"));
helpTreeRenderer.setLeafIcon(resources.getIcon("leafIcon"));
createHelpContents();
// Create help search panel
// search tree
searchRootTreeNode = new DefaultMutableTreeNode();
searchTreeModel = new DefaultTreeModel(searchRootTreeNode);
searchTree = new JTree();
searchTree.setModel(searchTreeModel);
searchTree.setRootVisible(false);
searchTree.setShowsRootHandles(true);
searchTree.addTreeSelectionListener(this);
JScrollPane scrollSearchTree = new JScrollPane(searchTree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
DefaultTreeCellRenderer searchTreeRenderer = (DefaultTreeCellRenderer) searchTree.getCellRenderer();
searchTreeRenderer.setOpenIcon(resources.getIcon("folderIcon"));
searchTreeRenderer.setClosedIcon(resources.getIcon("folderIcon"));
searchTreeRenderer.setLeafIcon(resources.getIcon("leafIcon"));
// search field
JToolBar toolbar = new JToolBar();
toolbar.setRollover(true);
toolbar.setFloatable(false);
bClearFilter = resources.getBox("clearFilter", this);
bClearFilter.setEnabled(false);
toolbar.add(bClearFilter);
bApplyFilter = resources.getBox("applyFilter", this);
toolbar.add(bApplyFilter);
JLabel searchTip = new JLabel(resources.getString("filter"));
searchField = new JTextField(15);
searchField.addKeyListener(