if (nodeInfo.toString().equals(LangTool.getString("sa.nodePrinter"))) { jp.removeAll(); jp.add(pp,BorderLayout.CENTER); jp.setPreferredSize(cpp.getPreferredSize()); jp.validate(); jpm.repaint(); }
         public void valueChanged(TreeSelectionEvent e) {            DefaultMutableTreeNode node = (DefaultMutableTreeNode)                                tree.getLastSelectedPathComponent();            if (node == null)               return;            Object nodeInfo = node.getUserObject();            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeFonts"))) {               jp.removeAll();               jp.add(fp,BorderLayout.NORTH);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeColors"))) {               jp.removeAll();               jp.add(cpp,BorderLayout.CENTER);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeDisplay"))) {               jp.removeAll();               jp.add(display,BorderLayout.NORTH);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeCursor"))) {               jp.removeAll();               jp.add(cuPanel,BorderLayout.CENTER);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeOnConnect"))) {               jp.removeAll();               jp.add(onConnect,BorderLayout.CENTER);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeMouse"))) {               jp.removeAll();               jp.add(mouse,BorderLayout.CENTER);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeHS"))) {               jp.removeAll();               jp.add(hotspot,BorderLayout.CENTER);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }            if (nodeInfo.toString().equals(LangTool.getString("sa.nodeKP"))) {               jp.removeAll();               jp.add(kp,BorderLayout.CENTER);               jp.setPreferredSize(cpp.getPreferredSize());               jp.validate();               jpm.repaint();            }         }