@SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane = new javax.swing.JScrollPane();
        DefaultMutableTreeNode top =
        new DefaultMutableTreeNode("HelpDesk");
        createNodes(top);
        tree = new javax.swing.JTree(top);
        ExitButton = new javax.swing.JButton();
        ReplyButton = new javax.swing.JButton();
        htmlView = new javax.swing.JScrollPane();
        htmlPane = new javax.swing.JEditorPane();
        viewScheduleButton = new javax.swing.JButton();
        setAssistantsButton = new javax.swing.JButton();
        controlFormsButton = new javax.swing.JButton();
        accessScheduleButton = new javax.swing.JButton();
        accessFormsButton = new javax.swing.JButton();
        PostButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
        tree.addTreeSelectionListener(this);
        jScrollPane.setViewportView(tree);

        ExitButton.setText("Sign Off");
        ExitButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ExitButtonActionPerformed(evt);
            }
        });

        ReplyButton.setText("Reply");
        ReplyButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ReplyButtonActionPerformed(evt);
            }
        });

        htmlPane.setEditable(false);
        initHelp();
        htmlPane.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
        htmlView.setViewportView(htmlPane);

        if (userType == 3) {

        } else {
            viewScheduleButton.setVisible(false);
        }
        viewScheduleButton.setText("Schedule Control");
        viewScheduleButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                viewScheduleButtonActionPerformed(evt);
            }
        });

        if (userType == 3) {

        } else {
            setAssistantsButton.setVisible(false);
        }
        setAssistantsButton.setText("Set Assistants");
        setAssistantsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                setAssistantsButtonActionPerformed(evt);
            }
        });

        if (userType == 2) {

        } else {
            controlFormsButton.setVisible(false);
        }
        controlFormsButton.setText("Forms");
        controlFormsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                controlFormsButtonActionPerformed(evt);
            }
        });

        if (userType == 2) {

        } else {
            accessScheduleButton.setVisible(false);
        }
        accessScheduleButton.setText("My Schedule");
        accessScheduleButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                accessScheduleButtonActionPerformed(evt);
            }
        });

        if (userType == 1) {

        } else {
            accessFormsButton.setVisible(false);
        }
        accessFormsButton.setText("My Forms");
        accessFormsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                accessFormsButtonActionPerformed(evt);
            }
        });

        PostButton.setText("Post");
        PostButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PostButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(PostButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(ReplyButton))
                    .addComponent(htmlView)
                    .addComponent(jScrollPane))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(ExitButton)
                        .addGap(42, 42, 42))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(accessFormsButton)
                        .addComponent(accessScheduleButton)
                        .addComponent(controlFormsButton)
                        .addComponent(setAssistantsButton)
                        .addComponent(viewScheduleButton)))
                .addGap(22, 22, 22))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(htmlView, javax.swing.GroupLayout.DEFAULT_SIZE, 331, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(ReplyButton)
                            .addComponent(PostButton))
                        .addGap(77, 77, 77))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(ExitButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(accessFormsButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(accessScheduleButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(controlFormsButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(setAssistantsButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(viewScheduleButton)
                        .addContainerGap(424, Short.MAX_VALUE))))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents