this.viewPanelLayout = (CardLayout) viewPanel.getLayout();
viewPanelLayout = (CardLayout) viewPanel.getLayout(); navigatorTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);  navigatorTree.addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { navigatorTreeSelectionChanged(e); } });
    private void postInitComponents() {        this.viewPanelLayout = (CardLayout) viewPanel.getLayout();    }