private void ShowQuizChoice()
    {
        
        JPanel qcPanel = new JPanel();
        qcPanel.setSize(600, 600);
        qcPanel.setLayout(null);
        TimeLbl.setVisible(false);
        qnumLbl.setVisible(false);
        NextBtn.setVisible(false);
        PrevBtn.setVisible(false);
        Quiz[] availableQuizzes = getQuizzes();
        if (availableQuizzes.length > 0)
        {
            int l = 100;
            JLabel availableLabel = new JLabel("The following quizzes are available to take:");
            availableLabel.setLocation(100, 70);
            availableLabel.setSize(availableLabel.getPreferredSize());
            qcPanel.add(availableLabel);
            for (Quiz q : availableQuizzes)
            {
                l += 50;
                JLabel qnLabel = new JLabel();
                qnLabel.setText(q.quizTitle);
                JButton qButton = new JButton("Take Quiz");
                qButton.setActionCommand(Integer.toString(q.quizDBId));
                qButton.addActionListener(quizChoiceListener);
                qnLabel.setSize(qnLabel.getPreferredSize());
                qnLabel.setLocation(100, l);
                qButton.setLocation(110 + qnLabel.getWidth(), l);
                qButton.setSize(qButton.getPreferredSize());
                qcPanel.add(qButton);
                qcPanel.add(qnLabel);
                
            }
        }
        else 
        {
            JLabel noQLabel = new JLabel("No Quizzes Available");
            noQLabel.setSize(noQLabel.getPreferredSize());
            noQLabel.setLocation(100, 70);
            qcPanel.add(noQLabel);
        }
        QuestionPanel.add(qcPanel);
        QuestionPanel.setVisible(true);
        QuestionPanel.repaint();
        
            
            
            
    }