Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 22 of 22

Thread: adding int when you press a jbutton

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question adding int when you press a jbutton

    im having trouble with passing a value be tween jbuttons in a card layout, im having the buttion add 1 to a value that is called in the outer jframe by a text filed


    // the values are called from the main
     
    public class MainJFrame extends javax.swing.JFrame {
    int CAL, OUT;
    {


    // buttons 
     
        private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            CAL = CAL+1;
            CAL = OUT;
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_2");
        }

    //text filed 
     
    jLabel4 = new javax.swing.JLabel(""+OUT);

    the code runs but when i click the button the value on the next jframe not updated stays at *0*


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    The program uses the value of OUT when the JLabel object is created. If you want to change the String shown in the JLabel, you need to call a method to change it.
            CAL = CAL+1;  //<<  This changes the value of CAL
            CAL = OUT;    // <<  This also changes the value of CAL, replacing the previous value
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    i meant to change the valble CAL to OUT for out put if this may help here is the entire code it runs but i need to fix this little bug be 4 i finish the program becouse it some what make the program, its a swing text based trivia game for my FBLA chapter.

     
     
    package trivia;
     
    import java.awt.CardLayout;
     
    /**
     *
     * @author odis
     */
    public class MainJFrame extends javax.swing.JFrame {
    int CAL, OUT;
     
        public MainJFrame() {
            initComponents();
        }
     
        @SuppressWarnings("unchecked")
        private void initComponents() {
     
            mainPanel = new javax.swing.JPanel();
            view = new javax.swing.JPanel();
            Test = new javax.swing.JButton();
            Quiz = new javax.swing.JButton();
            jScrollPane2 = new javax.swing.JScrollPane();
            jTextArea2 = new javax.swing.JTextArea();
            pickQuiz = new javax.swing.JPanel();
            BattleoftheChaptersQuiz = new javax.swing.JButton();
            btm_2 = new javax.swing.JButton();
            BattleofTheChaptersQuiz_Start = new javax.swing.JPanel();
            jButton1 = new javax.swing.JButton();
            btm_1 = new javax.swing.JButton();
            BattleofTheChaptersQuiz_Q1 = new javax.swing.JPanel();
            jButton5 = new javax.swing.JButton();
            jButton9 = new javax.swing.JButton();
            jButton10 = new javax.swing.JButton();
            jButton12 = new javax.swing.JButton();
            jScrollPane4 = new javax.swing.JScrollPane();
            jLabel3 = new javax.swing.JLabel();
            jTextArea4 = new javax.swing.JTextArea();
            jSeparator2 = new javax.swing.JSeparator();
            jLabel4 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q2 = new javax.swing.JPanel();
            jButton7 = new javax.swing.JButton();
            jButton11 = new javax.swing.JButton();
            jButton13 = new javax.swing.JButton();
            jButton14 = new javax.swing.JButton();
            jScrollPane5 = new javax.swing.JScrollPane();
            jLabel5 = new javax.swing.JLabel();
            jTextArea5 = new javax.swing.JTextArea();
            jSeparator3 = new javax.swing.JSeparator();
            jLabel6 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q3 = new javax.swing.JPanel();
            jButton8 = new javax.swing.JButton();
            jButton15 = new javax.swing.JButton();
            jButton16 = new javax.swing.JButton();
            jButton17 = new javax.swing.JButton();
            jScrollPane6 = new javax.swing.JScrollPane();
            jLabel7 = new javax.swing.JLabel();
            jTextArea6 = new javax.swing.JTextArea();
            jSeparator4 = new javax.swing.JSeparator();
            jLabel8 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q4 = new javax.swing.JPanel();
            jButton18 = new javax.swing.JButton();
            jButton19 = new javax.swing.JButton();
            jButton20 = new javax.swing.JButton();
            jButton21 = new javax.swing.JButton();
            jScrollPane7 = new javax.swing.JScrollPane();
            jLabel9 = new javax.swing.JLabel();
            jTextArea7 = new javax.swing.JTextArea();
            jSeparator5 = new javax.swing.JSeparator();
            jLabel10 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q5 = new javax.swing.JPanel();
            jButton22 = new javax.swing.JButton();
            jButton23 = new javax.swing.JButton();
            jButton24 = new javax.swing.JButton();
            jButton25 = new javax.swing.JButton();
            jScrollPane8 = new javax.swing.JScrollPane();
            jLabel11 = new javax.swing.JLabel();
            jTextArea8 = new javax.swing.JTextArea();
            jSeparator6 = new javax.swing.JSeparator();
            jLabel12 = new javax.swing.JLabel();
            BattleofTheChaptersQuiz_Q6 = new javax.swing.JPanel();
            jButton26 = new javax.swing.JButton();
            jButton27 = new javax.swing.JButton();
            jButton28 = new javax.swing.JButton();
            jButton29 = new javax.swing.JButton();
            jScrollPane9 = new javax.swing.JScrollPane();
            jLabel13 = new javax.swing.JLabel();
            jTextArea9 = new javax.swing.JTextArea();
            jSeparator7 = new javax.swing.JSeparator();
            jLabel14 = new javax.swing.JLabel();
            BattleofTheChaptersQuiz_Q7 = new javax.swing.JPanel();
            jButton30 = new javax.swing.JButton();
            jButton31 = new javax.swing.JButton();
            jButton32 = new javax.swing.JButton();
            jButton33 = new javax.swing.JButton();
            jScrollPane10 = new javax.swing.JScrollPane();
            jLabel15 = new javax.swing.JLabel();
            jTextArea10 = new javax.swing.JTextArea();
            jSeparator8 = new javax.swing.JSeparator();
            jLabel16 = new javax.swing.JLabel();
            pickTest = new javax.swing.JPanel();
            FBLAPRINCIPLESPROCEDUREStest = new javax.swing.JButton();
            btm_3 = new javax.swing.JButton();
            FBLAPRINCIPLESANDPROCEDUREStest_Start = new javax.swing.JPanel();
            jButton89 = new javax.swing.JButton();
     
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
     
            mainPanel.setLayout(new java.awt.CardLayout());
     
            Test.setText("Test your skills");
            Test.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    TestActionPerformed(evt);
                }
            });
     
            Quiz.setText("Quiz your skills");
            Quiz.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    QuizActionPerformed(evt);
                }
            });
     
            jTextArea2.setColumns(20);
            jTextArea2.setRows(5);
            jTextArea2.setText("Pelease finish each test or quiz after the \nquiz or test you will be returned here.\nThere will be no data saved during the use of\nthis app!");
            jScrollPane2.setViewportView(jTextArea2);
     
            javax.swing.GroupLayout viewLayout = new javax.swing.GroupLayout(view);
            view.setLayout(viewLayout);
            viewLayout.setHorizontalGroup(
                viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE)
                        .addComponent(Test, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(Quiz, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
            );
            viewLayout.setVerticalGroup(
                viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(Test)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(Quiz)
                    .addGap(30, 30, 30))
            );
     
            mainPanel.add(view, "card1");
     
            BattleoftheChaptersQuiz.setText("Battle of the Chapters");
            BattleoftheChaptersQuiz.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    BattleoftheChaptersQuizActionPerformed(evt);
                }
            });
     
            btm_2.setText("back to menue");
            btm_2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btm_2ActionPerformed(evt);
                }
            });
     
            javax.swing.GroupLayout pickQuizLayout = new javax.swing.GroupLayout(pickQuiz);
            pickQuiz.setLayout(pickQuizLayout);
            pickQuizLayout.setHorizontalGroup(
                pickQuizLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pickQuizLayout.createSequentialGroup()
                    .addContainerGap(245, Short.MAX_VALUE)
                    .addGroup(pickQuizLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(btm_2)
                        .addComponent(BattleoftheChaptersQuiz))
                    .addGap(25, 25, 25))
            );
            pickQuizLayout.setVerticalGroup(
                pickQuizLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pickQuizLayout.createSequentialGroup()
                    .addGap(29, 29, 29)
                    .addComponent(BattleoftheChaptersQuiz)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 257, Short.MAX_VALUE)
                    .addComponent(btm_2)
                    .addContainerGap())
            );
     
            mainPanel.add(pickQuiz, "quiz");
     
            jButton1.setText("Start Battle of The Chapters Quiz");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
                }
            });
     
            btm_1.setText("back to menue");
            btm_1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btm_1ActionPerformed(evt);
                }
            });
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_StartLayout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Start);
            BattleofTheChaptersQuiz_Start.setLayout(BattleofTheChaptersQuiz_StartLayout);
            BattleofTheChaptersQuiz_StartLayout.setHorizontalGroup(
                BattleofTheChaptersQuiz_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_StartLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btm_1)
                    .addContainerGap())
                .addGroup(BattleofTheChaptersQuiz_StartLayout.createSequentialGroup()
                    .addGap(68, 68, 68)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(110, Short.MAX_VALUE))
            );
            BattleofTheChaptersQuiz_StartLayout.setVerticalGroup(
                BattleofTheChaptersQuiz_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(BattleofTheChaptersQuiz_StartLayout.createSequentialGroup()
                    .addContainerGap(80, Short.MAX_VALUE)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(72, 72, 72)
                    .addComponent(btm_1)
                    .addContainerGap())
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Start, "BCQ_start");
     
            jButton5.setText("jButton2");
     
            jButton9.setText("jButton1");
     
            jButton10.setText("jButton3");
     
            jButton12.setText("Hamden L. Forkner");
            jButton12.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton12ActionPerformed(evt);
                }
            });
     
            jLabel3.setText("Score:");
     
            jTextArea4.setColumns(20);
            jTextArea4.setRows(5);
            jTextArea4.setText("Who is the founder of FBLA?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q1Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q1);
            BattleofTheChaptersQuiz_Q1.setLayout(BattleofTheChaptersQuiz_Q1Layout);
            BattleofTheChaptersQuiz_Q1Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea4)
                        .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                                    .addComponent(jLabel3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                                    .addComponent(jButton9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton5))
                                .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                                    .addComponent(jButton10)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton12))
                                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q1Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea4, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton9)
                        .addComponent(jButton5))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton10)
                        .addComponent(jButton12))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q1, "BCQ_1");
     
            jButton7.setText("jButton2");
     
            jButton11.setText("1981, Conrad N. Hilton Foundation");
            jButton11.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton11ActionPerformed(evt);
                }
            });
     
            jButton13.setText("jButton3");
     
            jButton14.setText("654");
            jButton14.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton14ActionPerformed(evt);
                }
            });
     
            jLabel5.setText("Score:");
     
            jTextArea5.setColumns(20);
            jTextArea5.setRows(5);
            jTextArea5.setText("What year and what group purchased the land for \nthe FBLA-PBL National Center?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q2Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q2);
            BattleofTheChaptersQuiz_Q2.setLayout(BattleofTheChaptersQuiz_Q2Layout);
            BattleofTheChaptersQuiz_Q2Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea5, javax.swing.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE)
                        .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                                    .addComponent(jLabel5)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                                    .addComponent(jButton11)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton7))
                                .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                                    .addComponent(jButton13)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton14))
                                .addComponent(jScrollPane5))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q2Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea5, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton11)
                        .addComponent(jButton7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton13)
                        .addComponent(jButton14))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q2, "BCQ_2");
     
            jButton8.setText("Johnson City, TN");
            jButton8.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton8ActionPerformed(evt);
                }
            });
     
            jButton15.setText("jButton1");
     
            jButton16.setText("jButton3");
     
            jButton17.setText("654");
            jButton17.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton17ActionPerformed(evt);
                }
            });
     
            jLabel7.setText("Score:");
     
            jTextArea6.setColumns(20);
            jTextArea6.setRows(5);
            jTextArea6.setText("The first FBLA chapter was chartered where?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q3Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q3);
            BattleofTheChaptersQuiz_Q3.setLayout(BattleofTheChaptersQuiz_Q3Layout);
            BattleofTheChaptersQuiz_Q3Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea6)
                        .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                                    .addComponent(jLabel7)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                                    .addComponent(jButton15)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton8))
                                .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                                    .addComponent(jButton16)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton17))
                                .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q3Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea6, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton15)
                        .addComponent(jButton8))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton16)
                        .addComponent(jButton17))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q3, "BCQ_3");
     
            jButton18.setText("jButton2");
     
            jButton19.setText("jButton1");
     
            jButton20.setText("February 3, 1942");
     
            jButton21.setText("654");
            jButton21.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton21ActionPerformed(evt);
                }
            });
     
            jLabel9.setText("Score:");
     
            jTextArea7.setColumns(20);
            jTextArea7.setRows(5);
            jTextArea7.setText("What date was the first FBLA chapter chartered?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q4Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q4);
            BattleofTheChaptersQuiz_Q4.setLayout(BattleofTheChaptersQuiz_Q4Layout);
            BattleofTheChaptersQuiz_Q4Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea7, javax.swing.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE)
                        .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                                    .addComponent(jLabel9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator5, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                                    .addComponent(jButton19)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton18))
                                .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                                    .addComponent(jButton20)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton21))
                                .addComponent(jScrollPane7))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q4Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea7, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton19)
                        .addComponent(jButton18))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton20)
                        .addComponent(jButton21))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q4, "BCQ_4");
     
            jButton22.setText("jButton2");
     
            jButton23.setText(" 1947");
     
            jButton24.setText("February 3, 1942");
     
            jButton25.setText("654");
            jButton25.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton25ActionPerformed(evt);
                }
            });
     
            jLabel11.setText("Score:");
     
            jTextArea8.setColumns(20);
            jTextArea8.setRows(5);
            jTextArea8.setText("When was the first state chapter chartered?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q5Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q5);
            BattleofTheChaptersQuiz_Q5.setLayout(BattleofTheChaptersQuiz_Q5Layout);
            BattleofTheChaptersQuiz_Q5Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea8, javax.swing.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE)
                        .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                                    .addComponent(jLabel11)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator6, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                                    .addComponent(jButton23)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton22))
                                .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                                    .addComponent(jButton24)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton25))
                                .addComponent(jScrollPane8))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q5Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea8, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton23)
                        .addComponent(jButton22))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton24)
                        .addComponent(jButton25))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q5, "BCQ_4");
     
            jButton26.setText(" St. Albans, West Virginia, February 5, 1942");
     
            jButton27.setText(" 1947");
     
            jButton28.setText("February 3, 1942");
     
            jButton29.setText("654");
            jButton29.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton29ActionPerformed(evt);
                }
            });
     
            jLabel13.setText("Score:");
     
            jTextArea9.setColumns(20);
            jTextArea9.setRows(5);
            jTextArea9.setText("Where and on what date was the second FBLA \nchapter chartered?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q6Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q6);
            BattleofTheChaptersQuiz_Q6.setLayout(BattleofTheChaptersQuiz_Q6Layout);
            BattleofTheChaptersQuiz_Q6Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea9)
                        .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                                    .addComponent(jLabel13)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator7, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                                    .addComponent(jButton27)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton26))
                                .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                                    .addComponent(jButton28)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton29))
                                .addComponent(jScrollPane9))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q6Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea9, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton27)
                        .addComponent(jButton26))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton28)
                        .addComponent(jButton29))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q6, "BCQ_4");
     
            jButton30.setText(" St. Albans, West Virginia, February 5, 1942");
     
            jButton31.setText(" 1947");
     
            jButton32.setText("February 3, 1942");
     
            jButton33.setText(" National Council for Business Education 1937 ");
            jButton33.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton33ActionPerformed(evt);
                }
            });
     
            jLabel15.setText("Score:");
     
            jTextArea10.setColumns(20);
            jTextArea10.setRows(5);
            jTextArea10.setText("What group was the original sponsoring group for FBLA?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q7Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q7);
            BattleofTheChaptersQuiz_Q7.setLayout(BattleofTheChaptersQuiz_Q7Layout);
            BattleofTheChaptersQuiz_Q7Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jTextArea10, javax.swing.GroupLayout.Alignment.TRAILING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                            .addComponent(jLabel15)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE))
                        .addComponent(jSeparator8, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                            .addComponent(jButton31)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton30))
                        .addGroup(BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                            .addComponent(jButton32)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton33))
                        .addComponent(jScrollPane10)))
            );
            BattleofTheChaptersQuiz_Q7Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea10, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton31)
                        .addComponent(jButton30))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton32)
                        .addComponent(jButton33))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q7, "BCQ_4");
     
            FBLAPRINCIPLESPROCEDUREStest.setText("FBLA PRINCIPLES AND PROCEDURES");
            FBLAPRINCIPLESPROCEDUREStest.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    FBLAPRINCIPLESPROCEDUREStestActionPerformed(evt);
                }
            });
     
            btm_3.setText("back to menue");
            btm_3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btm_3ActionPerformed(evt);
                }
            });
     
            javax.swing.GroupLayout pickTestLayout = new javax.swing.GroupLayout(pickTest);
            pickTest.setLayout(pickTestLayout);
            pickTestLayout.setHorizontalGroup(
                pickTestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pickTestLayout.createSequentialGroup()
                    .addGap(36, 36, 36)
                    .addComponent(FBLAPRINCIPLESPROCEDUREStest)
                    .addContainerGap(162, Short.MAX_VALUE))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pickTestLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btm_3)
                    .addContainerGap())
            );
            pickTestLayout.setVerticalGroup(
                pickTestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pickTestLayout.createSequentialGroup()
                    .addGap(47, 47, 47)
                    .addComponent(FBLAPRINCIPLESPROCEDUREStest)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 239, Short.MAX_VALUE)
                    .addComponent(btm_3)
                    .addContainerGap())
            );
     
            mainPanel.add(pickTest, "test");
     
            jButton89.setText("Start Test");
     
            javax.swing.GroupLayout FBLAPRINCIPLESANDPROCEDUREStest_StartLayout = new javax.swing.GroupLayout(FBLAPRINCIPLESANDPROCEDUREStest_Start);
            FBLAPRINCIPLESANDPROCEDUREStest_Start.setLayout(FBLAPRINCIPLESANDPROCEDUREStest_StartLayout);
            FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.setHorizontalGroup(
                FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createSequentialGroup()
                    .addGap(142, 142, 142)
                    .addComponent(jButton89)
                    .addContainerGap(186, Short.MAX_VALUE))
            );
            FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.setVerticalGroup(
                FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createSequentialGroup()
                    .addGap(114, 114, 114)
                    .addComponent(jButton89)
                    .addContainerGap(206, Short.MAX_VALUE))
            );
     
            mainPanel.add(FBLAPRINCIPLESANDPROCEDUREStest_Start, "card2");
     
            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()
                    .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
     
            pack();
        }
     
        private void TestActionPerformed(java.awt.event.ActionEvent evt) {                                     
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "test");
        }                                    
     
        private void QuizActionPerformed(java.awt.event.ActionEvent evt) {                                     
           ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "quiz");
        }                                    
     
        private void BattleoftheChaptersQuizActionPerformed(java.awt.event.ActionEvent evt) {                                                        
     
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_start");
     
        }                                                       
     
        private void FBLAPRINCIPLESPROCEDUREStestActionPerformed(java.awt.event.ActionEvent evt) {                                                             
          ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                                            
     
        private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            CAL = CAL+1;
            CAL = OUT;
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_2");
        }                                         
     
        private void btm_1ActionPerformed(java.awt.event.ActionEvent evt) {                                      
         ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                     
     
        private void btm_2ActionPerformed(java.awt.event.ActionEvent evt) {                                      
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                     
     
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
          ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_1");
        }                                        
     
        private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
        }                                         
     
        private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
        }                                         
     
        private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
        }                                         
     
        private void btm_3ActionPerformed(java.awt.event.ActionEvent evt) {                                      
         ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                     
     
        private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {                                          
          ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_3");
        }                                         
     
        private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {                                         
           ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_4");
        }                                        
     
        private void jButton25ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        }
     
        private void jButton29ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        }
     
        private void jButton33ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        }
     
        /**
         * @param args the command line arguments
         */
        public static void main(String args[]) {
     
            try {
                for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                    if ("Nimbus".equals(info.getName())) {
                        javax.swing.UIManager.setLookAndFeel(info.getClassName());
                        break;
                    }
                }
            } catch (ClassNotFoundException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            }
     
            /* Create and display the form */
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new MainJFrame().setVisible(true);
                }
            });
        }
     
     
     
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q1;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q2;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q3;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q4;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q5;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q6;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q7;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Start;
        private javax.swing.JButton BattleoftheChaptersQuiz;
        private javax.swing.JPanel FBLAPRINCIPLESANDPROCEDUREStest_Start;
        private javax.swing.JButton FBLAPRINCIPLESPROCEDUREStest;
        private javax.swing.JButton Quiz;
        private javax.swing.JButton Test;
        private javax.swing.JButton btm_1;
        private javax.swing.JButton btm_2;
        private javax.swing.JButton btm_3;
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton10;
        private javax.swing.JButton jButton11;
        public javax.swing.JButton jButton12;
        private javax.swing.JButton jButton13;
        private javax.swing.JButton jButton14;
        private javax.swing.JButton jButton15;
        private javax.swing.JButton jButton16;
        private javax.swing.JButton jButton17;
        private javax.swing.JButton jButton18;
        private javax.swing.JButton jButton19;
        private javax.swing.JButton jButton20;
        private javax.swing.JButton jButton21;
        private javax.swing.JButton jButton22;
        private javax.swing.JButton jButton23;
        private javax.swing.JButton jButton24;
        private javax.swing.JButton jButton25;
        private javax.swing.JButton jButton26;
        private javax.swing.JButton jButton27;
        private javax.swing.JButton jButton28;
        private javax.swing.JButton jButton29;
        private javax.swing.JButton jButton30;
        private javax.swing.JButton jButton31;
        private javax.swing.JButton jButton32;
        private javax.swing.JButton jButton33;
        private javax.swing.JButton jButton5;
        private javax.swing.JButton jButton7;
        private javax.swing.JButton jButton8;
        private javax.swing.JButton jButton89;
        private javax.swing.JButton jButton9;
        private javax.swing.JLabel jLabel10;
        private javax.swing.JLabel jLabel11;
        private javax.swing.JLabel jLabel12;
        private javax.swing.JLabel jLabel13;
        private javax.swing.JLabel jLabel14;
        private javax.swing.JLabel jLabel15;
        private javax.swing.JLabel jLabel16;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabel4;
        private javax.swing.JLabel jLabel5;
        private javax.swing.JLabel jLabel6;
        private javax.swing.JLabel jLabel7;
        private javax.swing.JLabel jLabel8;
        private javax.swing.JLabel jLabel9;
        private javax.swing.JScrollPane jScrollPane10;
        private javax.swing.JScrollPane jScrollPane2;
        private javax.swing.JScrollPane jScrollPane4;
        private javax.swing.JScrollPane jScrollPane5;
        private javax.swing.JScrollPane jScrollPane6;
        private javax.swing.JScrollPane jScrollPane7;
        private javax.swing.JScrollPane jScrollPane8;
        private javax.swing.JScrollPane jScrollPane9;
        private javax.swing.JSeparator jSeparator2;
        private javax.swing.JSeparator jSeparator3;
        private javax.swing.JSeparator jSeparator4;
        private javax.swing.JSeparator jSeparator5;
        private javax.swing.JSeparator jSeparator6;
        private javax.swing.JSeparator jSeparator7;
        private javax.swing.JSeparator jSeparator8;
        private javax.swing.JTextArea jTextArea10;
        private javax.swing.JTextArea jTextArea2;
        private javax.swing.JTextArea jTextArea4;
        private javax.swing.JTextArea jTextArea5;
        private javax.swing.JTextArea jTextArea6;
        private javax.swing.JTextArea jTextArea7;
        private javax.swing.JTextArea jTextArea8;
        private javax.swing.JTextArea jTextArea9;
        private javax.swing.JPanel mainPanel;
        public javax.swing.JPanel pickQuiz;
        public javax.swing.JPanel pickTest;
        public javax.swing.JPanel view;
     
    }



    im not the best at swing im using netbeans to aid me
    Last edited by op117; December 30th, 2012 at 07:10 PM. Reason: more info

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    Is the String shown in jLabel4 what you want to change?
    Where does the code try to change the String shown in jLabel4?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    if the right button is clicked it add +1 to the value thin displays it in the text jLabel to say 1 , 2 ,3 ,4 ect only if the right button is pressed

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    it add +1 to the value
    Changing the value of a variable will NOT change what is shown.

    Where does the program try to change the String that is shown in a JLabel? It needs to call a method in the JLabel class to change what is shown.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    ... a bit confused so i have to make a new method? so just trying to add and call the variable will not work like using a CLI based program? can you give a example of how its done?

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    i have to make a new method
    No, you need to call an existing method.
    There are many samples in your code. Look for where you set the text of a JLabel to some String.
    If you don't understand my answer, don't ignore it, ask a question.

  9. #9
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    jLabel4 = new javax.swing.JLabel(""+OUT);

    contentions to force string out put

    we are both a bit confused but we will figure it out...

    and i added a graf to try to helpNew Bitmap Image.bmp

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    That's a constructor, not a call to a method. Did you look at the API doc for the JLabel class to find the method that will change the String that it displays?
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    New Bitmap Image (3).bmpNew Bitmap Image (2).bmpJLabel (Java 2 Platform SE v1.4.2)

    yes, the problem is that is will run and display a 0 but not up date

    afew screen shots

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    the problem is that is will run and display a 0 but not up date
    You need to call a method to update what is shown.
    Have you read the API doc for the JLabel class? Did you have any questions about which method to use to set the text of a JLabel using a String?

    I'm not sure what you are trying to show with images.
    If you don't understand my answer, don't ignore it, ask a question.

  13. #13
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    im looking in the API and have not found the up method...

  14. #14
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    It is the one that says something like: it will set the line of text the JLabel will display.

    Its name begins with set
    If you don't understand my answer, don't ignore it, ask a question.

  15. #15
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    all i see is img updates and how it's placed in a jframe.

    JLabel (Java 2 Platform SE v1.4.2)

    is this it?
    <CODE>
    public void setText(String text)
    <CODE>
    because that is what im using

  16. #16
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    Yes, that looks like it.
    Has the code that uses it been posted? I didn't see where it had been used in the code in post#3.
    Have you a new version of the code that uses the setText() method to change the text of the JLabels when and where you want them changed?
    If you don't understand my answer, don't ignore it, ask a question.

  17. #17
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    no the code is still the same, was in the entire code posted i think in post #2

  18. #18
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    entire code posted i think in post #2
    Post#2 was my post. The post numbers are at the right end of the blue stripe at the top of each post.

    If you want help finding the problem in the current code, you will have to post it.
    If you don't understand my answer, don't ignore it, ask a question.

  19. #19
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    package trivia;
     
    import java.awt.CardLayout;
     
    /**
     *
     * @author odis
     */
    public class MainJFrame extends javax.swing.JFrame {
    int CAL, OUT;
     
        public MainJFrame() {
            initComponents();
        }
     
        @SuppressWarnings("unchecked")
        private void initComponents() {
     
            mainPanel = new javax.swing.JPanel();
            view = new javax.swing.JPanel();
            Test = new javax.swing.JButton();
            Quiz = new javax.swing.JButton();
            jScrollPane2 = new javax.swing.JScrollPane();
            jTextArea2 = new javax.swing.JTextArea();
            pickQuiz = new javax.swing.JPanel();
            BattleoftheChaptersQuiz = new javax.swing.JButton();
            btm_2 = new javax.swing.JButton();
            BattleofTheChaptersQuiz_Start = new javax.swing.JPanel();
            jButton1 = new javax.swing.JButton();
            btm_1 = new javax.swing.JButton();
            BattleofTheChaptersQuiz_Q1 = new javax.swing.JPanel();
            jButton5 = new javax.swing.JButton();
            jButton9 = new javax.swing.JButton();
            jButton10 = new javax.swing.JButton();
            jButton12 = new javax.swing.JButton();
            jScrollPane4 = new javax.swing.JScrollPane();
            jLabel3 = new javax.swing.JLabel();
            jTextArea4 = new javax.swing.JTextArea();
            jSeparator2 = new javax.swing.JSeparator();
            jLabel4 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q2 = new javax.swing.JPanel();
            jButton7 = new javax.swing.JButton();
            jButton11 = new javax.swing.JButton();
            jButton13 = new javax.swing.JButton();
            jButton14 = new javax.swing.JButton();
            jScrollPane5 = new javax.swing.JScrollPane();
            jLabel5 = new javax.swing.JLabel();
            jTextArea5 = new javax.swing.JTextArea();
            jSeparator3 = new javax.swing.JSeparator();
            jLabel6 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q3 = new javax.swing.JPanel();
            jButton8 = new javax.swing.JButton();
            jButton15 = new javax.swing.JButton();
            jButton16 = new javax.swing.JButton();
            jButton17 = new javax.swing.JButton();
            jScrollPane6 = new javax.swing.JScrollPane();
            jLabel7 = new javax.swing.JLabel();
            jTextArea6 = new javax.swing.JTextArea();
            jSeparator4 = new javax.swing.JSeparator();
            jLabel8 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q4 = new javax.swing.JPanel();
            jButton18 = new javax.swing.JButton();
            jButton19 = new javax.swing.JButton();
            jButton20 = new javax.swing.JButton();
            jButton21 = new javax.swing.JButton();
            jScrollPane7 = new javax.swing.JScrollPane();
            jLabel9 = new javax.swing.JLabel();
            jTextArea7 = new javax.swing.JTextArea();
            jSeparator5 = new javax.swing.JSeparator();
            jLabel10 = new javax.swing.JLabel(""+OUT);
            BattleofTheChaptersQuiz_Q5 = new javax.swing.JPanel();
            jButton22 = new javax.swing.JButton();
            jButton23 = new javax.swing.JButton();
            jButton24 = new javax.swing.JButton();
            jButton25 = new javax.swing.JButton();
            jScrollPane8 = new javax.swing.JScrollPane();
            jLabel11 = new javax.swing.JLabel();
            jTextArea8 = new javax.swing.JTextArea();
            jSeparator6 = new javax.swing.JSeparator();
            jLabel12 = new javax.swing.JLabel();
            BattleofTheChaptersQuiz_Q6 = new javax.swing.JPanel();
            jButton26 = new javax.swing.JButton();
            jButton27 = new javax.swing.JButton();
            jButton28 = new javax.swing.JButton();
            jButton29 = new javax.swing.JButton();
            jScrollPane9 = new javax.swing.JScrollPane();
            jLabel13 = new javax.swing.JLabel();
            jTextArea9 = new javax.swing.JTextArea();
            jSeparator7 = new javax.swing.JSeparator();
            jLabel14 = new javax.swing.JLabel();
            BattleofTheChaptersQuiz_Q7 = new javax.swing.JPanel();
            jButton30 = new javax.swing.JButton();
            jButton31 = new javax.swing.JButton();
            jButton32 = new javax.swing.JButton();
            jButton33 = new javax.swing.JButton();
            jScrollPane10 = new javax.swing.JScrollPane();
            jLabel15 = new javax.swing.JLabel();
            jTextArea10 = new javax.swing.JTextArea();
            jSeparator8 = new javax.swing.JSeparator();
            jLabel16 = new javax.swing.JLabel();
            pickTest = new javax.swing.JPanel();
            FBLAPRINCIPLESPROCEDUREStest = new javax.swing.JButton();
            btm_3 = new javax.swing.JButton();
            FBLAPRINCIPLESANDPROCEDUREStest_Start = new javax.swing.JPanel();
            jButton89 = new javax.swing.JButton();
     
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
     
            mainPanel.setLayout(new java.awt.CardLayout());
     
            Test.setText("Test your skills");
            Test.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    TestActionPerformed(evt);
                }
            });
     
            Quiz.setText("Quiz your skills");
            Quiz.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    QuizActionPerformed(evt);
                }
            });
     
            jTextArea2.setColumns(20);
            jTextArea2.setRows(5);
            jTextArea2.setText("Pelease finish each test or quiz after the \nquiz or test you will be returned here.\nThere will be no data saved during the use of\nthis app!");
            jScrollPane2.setViewportView(jTextArea2);
     
            javax.swing.GroupLayout viewLayout = new javax.swing.GroupLayout(view);
            view.setLayout(viewLayout);
            viewLayout.setHorizontalGroup(
                viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE)
                        .addComponent(Test, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(Quiz, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
            );
            viewLayout.setVerticalGroup(
                viewLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(viewLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(Test)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(Quiz)
                    .addGap(30, 30, 30))
            );
     
            mainPanel.add(view, "card1");
     
            BattleoftheChaptersQuiz.setText("Battle of the Chapters");
            BattleoftheChaptersQuiz.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    BattleoftheChaptersQuizActionPerformed(evt);
                }
            });
     
            btm_2.setText("back to menue");
            btm_2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btm_2ActionPerformed(evt);
                }
            });
     
            javax.swing.GroupLayout pickQuizLayout = new javax.swing.GroupLayout(pickQuiz);
            pickQuiz.setLayout(pickQuizLayout);
            pickQuizLayout.setHorizontalGroup(
                pickQuizLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pickQuizLayout.createSequentialGroup()
                    .addContainerGap(245, Short.MAX_VALUE)
                    .addGroup(pickQuizLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(btm_2)
                        .addComponent(BattleoftheChaptersQuiz))
                    .addGap(25, 25, 25))
            );
            pickQuizLayout.setVerticalGroup(
                pickQuizLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pickQuizLayout.createSequentialGroup()
                    .addGap(29, 29, 29)
                    .addComponent(BattleoftheChaptersQuiz)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 257, Short.MAX_VALUE)
                    .addComponent(btm_2)
                    .addContainerGap())
            );
     
            mainPanel.add(pickQuiz, "quiz");
     
            jButton1.setText("Start Battle of The Chapters Quiz");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
                }
            });
     
            btm_1.setText("back to menue");
            btm_1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btm_1ActionPerformed(evt);
                }
            });
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_StartLayout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Start);
            BattleofTheChaptersQuiz_Start.setLayout(BattleofTheChaptersQuiz_StartLayout);
            BattleofTheChaptersQuiz_StartLayout.setHorizontalGroup(
                BattleofTheChaptersQuiz_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_StartLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btm_1)
                    .addContainerGap())
                .addGroup(BattleofTheChaptersQuiz_StartLayout.createSequentialGroup()
                    .addGap(68, 68, 68)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(110, Short.MAX_VALUE))
            );
            BattleofTheChaptersQuiz_StartLayout.setVerticalGroup(
                BattleofTheChaptersQuiz_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(BattleofTheChaptersQuiz_StartLayout.createSequentialGroup()
                    .addContainerGap(80, Short.MAX_VALUE)
                    .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(72, 72, 72)
                    .addComponent(btm_1)
                    .addContainerGap())
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Start, "BCQ_start");
     
            jButton5.setText("jButton2");
     
            jButton9.setText("jButton1");
     
            jButton10.setText("jButton3");
     
            jButton12.setText("Hamden L. Forkner");
            jButton12.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton12ActionPerformed(evt);
                }
            });
     
            jLabel3.setText("Score:");
     
            jTextArea4.setColumns(20);
            jTextArea4.setRows(5);
            jTextArea4.setText("Who is the founder of FBLA?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q1Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q1);
            BattleofTheChaptersQuiz_Q1.setLayout(BattleofTheChaptersQuiz_Q1Layout);
            BattleofTheChaptersQuiz_Q1Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea4)
                        .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                                    .addComponent(jLabel3)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                                    .addComponent(jButton9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton5))
                                .addGroup(BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                                    .addComponent(jButton10)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton12))
                                .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q1Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q1Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea4, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton9)
                        .addComponent(jButton5))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton10)
                        .addComponent(jButton12))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q1, "BCQ_1");
     
            jButton7.setText("jButton2");
     
            jButton11.setText("1981, Conrad N. Hilton Foundation");
            jButton11.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton11ActionPerformed(evt);
                }
            });
     
            jButton13.setText("jButton3");
     
            jButton14.setText("654");
            jButton14.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton14ActionPerformed(evt);
                }
            });
     
            jLabel5.setText("Score:");
     
            jTextArea5.setColumns(20);
            jTextArea5.setRows(5);
            jTextArea5.setText("What year and what group purchased the land for \nthe FBLA-PBL National Center?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q2Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q2);
            BattleofTheChaptersQuiz_Q2.setLayout(BattleofTheChaptersQuiz_Q2Layout);
            BattleofTheChaptersQuiz_Q2Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea5, javax.swing.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE)
                        .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                                    .addComponent(jLabel5)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                                    .addComponent(jButton11)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton7))
                                .addGroup(BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                                    .addComponent(jButton13)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton14))
                                .addComponent(jScrollPane5))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q2Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q2Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea5, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton11)
                        .addComponent(jButton7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton13)
                        .addComponent(jButton14))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q2, "BCQ_2");
     
            jButton8.setText("Johnson City, TN");
            jButton8.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton8ActionPerformed(evt);
                }
            });
     
            jButton15.setText("jButton1");
     
            jButton16.setText("jButton3");
     
            jButton17.setText("654");
            jButton17.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton17ActionPerformed(evt);
                }
            });
     
            jLabel7.setText("Score:");
     
            jTextArea6.setColumns(20);
            jTextArea6.setRows(5);
            jTextArea6.setText("The first FBLA chapter was chartered where?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q3Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q3);
            BattleofTheChaptersQuiz_Q3.setLayout(BattleofTheChaptersQuiz_Q3Layout);
            BattleofTheChaptersQuiz_Q3Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea6)
                        .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                                    .addComponent(jLabel7)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                                    .addComponent(jButton15)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton8))
                                .addGroup(BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                                    .addComponent(jButton16)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton17))
                                .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 389, Short.MAX_VALUE))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q3Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q3Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea6, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton15)
                        .addComponent(jButton8))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton16)
                        .addComponent(jButton17))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q3, "BCQ_3");
     
            jButton18.setText("jButton2");
     
            jButton19.setText("jButton1");
     
            jButton20.setText("February 3, 1942");
     
            jButton21.setText("654");
            jButton21.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton21ActionPerformed(evt);
                }
            });
     
            jLabel9.setText("Score:");
     
            jTextArea7.setColumns(20);
            jTextArea7.setRows(5);
            jTextArea7.setText("What date was the first FBLA chapter chartered?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q4Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q4);
            BattleofTheChaptersQuiz_Q4.setLayout(BattleofTheChaptersQuiz_Q4Layout);
            BattleofTheChaptersQuiz_Q4Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea7, javax.swing.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE)
                        .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                                    .addComponent(jLabel9)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator5, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                                    .addComponent(jButton19)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton18))
                                .addGroup(BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                                    .addComponent(jButton20)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton21))
                                .addComponent(jScrollPane7))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q4Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q4Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea7, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton19)
                        .addComponent(jButton18))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton20)
                        .addComponent(jButton21))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q4, "BCQ_4");
     
            jButton22.setText("jButton2");
     
            jButton23.setText(" 1947");
     
            jButton24.setText("February 3, 1942");
     
            jButton25.setText("654");
            jButton25.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton25ActionPerformed(evt);
                }
            });
     
            jLabel11.setText("Score:");
     
            jTextArea8.setColumns(20);
            jTextArea8.setRows(5);
            jTextArea8.setText("When was the first state chapter chartered?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q5Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q5);
            BattleofTheChaptersQuiz_Q5.setLayout(BattleofTheChaptersQuiz_Q5Layout);
            BattleofTheChaptersQuiz_Q5Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea8, javax.swing.GroupLayout.DEFAULT_SIZE, 399, Short.MAX_VALUE)
                        .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                                    .addComponent(jLabel11)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator6, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                                    .addComponent(jButton23)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton22))
                                .addGroup(BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                                    .addComponent(jButton24)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton25))
                                .addComponent(jScrollPane8))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q5Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q5Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea8, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton23)
                        .addComponent(jButton22))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton24)
                        .addComponent(jButton25))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q5, "BCQ_4");
     
            jButton26.setText(" St. Albans, West Virginia, February 5, 1942");
     
            jButton27.setText(" 1947");
     
            jButton28.setText("February 3, 1942");
     
            jButton29.setText("654");
            jButton29.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton29ActionPerformed(evt);
                }
            });
     
            jLabel13.setText("Score:");
     
            jTextArea9.setColumns(20);
            jTextArea9.setRows(5);
            jTextArea9.setText("Where and on what date was the second FBLA \nchapter chartered?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q6Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q6);
            BattleofTheChaptersQuiz_Q6.setLayout(BattleofTheChaptersQuiz_Q6Layout);
            BattleofTheChaptersQuiz_Q6Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jTextArea9)
                        .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                                    .addComponent(jLabel13)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 0, Short.MAX_VALUE))
                                .addComponent(jSeparator7, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                                    .addComponent(jButton27)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton26))
                                .addGroup(BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                                    .addComponent(jButton28)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jButton29))
                                .addComponent(jScrollPane9))))
                    .addContainerGap())
            );
            BattleofTheChaptersQuiz_Q6Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q6Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea9, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton27)
                        .addComponent(jButton26))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton28)
                        .addComponent(jButton29))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q6, "BCQ_4");
     
            jButton30.setText(" St. Albans, West Virginia, February 5, 1942");
     
            jButton31.setText(" 1947");
     
            jButton32.setText("February 3, 1942");
     
            jButton33.setText(" National Council for Business Education 1937 ");
            jButton33.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton33ActionPerformed(evt);
                }
            });
     
            jLabel15.setText("Score:");
     
            jTextArea10.setColumns(20);
            jTextArea10.setRows(5);
            jTextArea10.setText("What group was the original sponsoring group for FBLA?");
     
            javax.swing.GroupLayout BattleofTheChaptersQuiz_Q7Layout = new javax.swing.GroupLayout(BattleofTheChaptersQuiz_Q7);
            BattleofTheChaptersQuiz_Q7.setLayout(BattleofTheChaptersQuiz_Q7Layout);
            BattleofTheChaptersQuiz_Q7Layout.setHorizontalGroup(
                BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jTextArea10, javax.swing.GroupLayout.Alignment.TRAILING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                            .addComponent(jLabel15)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE))
                        .addComponent(jSeparator8, javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                            .addComponent(jButton31)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton30))
                        .addGroup(BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                            .addComponent(jButton32)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton33))
                        .addComponent(jScrollPane10)))
            );
            BattleofTheChaptersQuiz_Q7Layout.setVerticalGroup(
                BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, BattleofTheChaptersQuiz_Q7Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jTextArea10, javax.swing.GroupLayout.DEFAULT_SIZE, 195, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton31)
                        .addComponent(jButton30))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton32)
                        .addComponent(jButton33))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(BattleofTheChaptersQuiz_Q7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGap(18, 18, 18))
            );
     
            mainPanel.add(BattleofTheChaptersQuiz_Q7, "BCQ_4");
     
            FBLAPRINCIPLESPROCEDUREStest.setText("FBLA PRINCIPLES AND PROCEDURES");
            FBLAPRINCIPLESPROCEDUREStest.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    FBLAPRINCIPLESPROCEDUREStestActionPerformed(evt);
                }
            });
     
            btm_3.setText("back to menue");
            btm_3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btm_3ActionPerformed(evt);
                }
            });
     
            javax.swing.GroupLayout pickTestLayout = new javax.swing.GroupLayout(pickTest);
            pickTest.setLayout(pickTestLayout);
            pickTestLayout.setHorizontalGroup(
                pickTestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pickTestLayout.createSequentialGroup()
                    .addGap(36, 36, 36)
                    .addComponent(FBLAPRINCIPLESPROCEDUREStest)
                    .addContainerGap(162, Short.MAX_VALUE))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pickTestLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btm_3)
                    .addContainerGap())
            );
            pickTestLayout.setVerticalGroup(
                pickTestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(pickTestLayout.createSequentialGroup()
                    .addGap(47, 47, 47)
                    .addComponent(FBLAPRINCIPLESPROCEDUREStest)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 239, Short.MAX_VALUE)
                    .addComponent(btm_3)
                    .addContainerGap())
            );
     
            mainPanel.add(pickTest, "test");
     
            jButton89.setText("Start Test");
     
            javax.swing.GroupLayout FBLAPRINCIPLESANDPROCEDUREStest_StartLayout = new javax.swing.GroupLayout(FBLAPRINCIPLESANDPROCEDUREStest_Start);
            FBLAPRINCIPLESANDPROCEDUREStest_Start.setLayout(FBLAPRINCIPLESANDPROCEDUREStest_StartLayout);
            FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.setHorizontalGroup(
                FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createSequentialGroup()
                    .addGap(142, 142, 142)
                    .addComponent(jButton89)
                    .addContainerGap(186, Short.MAX_VALUE))
            );
            FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.setVerticalGroup(
                FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(FBLAPRINCIPLESANDPROCEDUREStest_StartLayout.createSequentialGroup()
                    .addGap(114, 114, 114)
                    .addComponent(jButton89)
                    .addContainerGap(206, Short.MAX_VALUE))
            );
     
            mainPanel.add(FBLAPRINCIPLESANDPROCEDUREStest_Start, "card2");
     
            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()
                    .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            );
     
            pack();
        }
     
        private void TestActionPerformed(java.awt.event.ActionEvent evt) {                                     
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "test");
        }                                    
     
        private void QuizActionPerformed(java.awt.event.ActionEvent evt) {                                     
           ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "quiz");
        }                                    
     
        private void BattleoftheChaptersQuizActionPerformed(java.awt.event.ActionEvent evt) {                                                        
     
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_start");
     
        }                                                       
     
        private void FBLAPRINCIPLESPROCEDUREStestActionPerformed(java.awt.event.ActionEvent evt) {                                                             
          ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                                            
     
        private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            CAL = CAL+1;
            CAL = OUT;
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_2");
        }                                         
     
        private void btm_1ActionPerformed(java.awt.event.ActionEvent evt) {                                      
         ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                     
     
        private void btm_2ActionPerformed(java.awt.event.ActionEvent evt) {                                      
            ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                     
     
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
          ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_1");
        }                                        
     
        private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
        }                                         
     
        private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
        }                                         
     
        private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {                                          
            // TODO add your handling code here:
        }                                         
     
        private void btm_3ActionPerformed(java.awt.event.ActionEvent evt) {                                      
         ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "card1");
        }                                     
     
        private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {                                          
          ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_3");
        }                                         
     
        private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {                                         
           ((CardLayout)(mainPanel.getLayout())).show(mainPanel, "BCQ_4");
        }                                        
     
        private void jButton25ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        }
     
        private void jButton29ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        }
     
        private void jButton33ActionPerformed(java.awt.event.ActionEvent evt) {
            // TODO add your handling code here:
        }
     
        /**
         * @param args the command line arguments
         */
        public static void main(String args[]) {
     
            try {
                for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                    if ("Nimbus".equals(info.getName())) {
                        javax.swing.UIManager.setLookAndFeel(info.getClassName());
                        break;
                    }
                }
            } catch (ClassNotFoundException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(MainJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            }
     
            /* Create and display the form */
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new MainJFrame().setVisible(true);
                }
            });
        }
     
     
     
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q1;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q2;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q3;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q4;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q5;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q6;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Q7;
        public javax.swing.JPanel BattleofTheChaptersQuiz_Start;
        private javax.swing.JButton BattleoftheChaptersQuiz;
        private javax.swing.JPanel FBLAPRINCIPLESANDPROCEDUREStest_Start;
        private javax.swing.JButton FBLAPRINCIPLESPROCEDUREStest;
        private javax.swing.JButton Quiz;
        private javax.swing.JButton Test;
        private javax.swing.JButton btm_1;
        private javax.swing.JButton btm_2;
        private javax.swing.JButton btm_3;
        private javax.swing.JButton jButton1;
        private javax.swing.JButton jButton10;
        private javax.swing.JButton jButton11;
        public javax.swing.JButton jButton12;
        private javax.swing.JButton jButton13;
        private javax.swing.JButton jButton14;
        private javax.swing.JButton jButton15;
        private javax.swing.JButton jButton16;
        private javax.swing.JButton jButton17;
        private javax.swing.JButton jButton18;
        private javax.swing.JButton jButton19;
        private javax.swing.JButton jButton20;
        private javax.swing.JButton jButton21;
        private javax.swing.JButton jButton22;
        private javax.swing.JButton jButton23;
        private javax.swing.JButton jButton24;
        private javax.swing.JButton jButton25;
        private javax.swing.JButton jButton26;
        private javax.swing.JButton jButton27;
        private javax.swing.JButton jButton28;
        private javax.swing.JButton jButton29;
        private javax.swing.JButton jButton30;
        private javax.swing.JButton jButton31;
        private javax.swing.JButton jButton32;
        private javax.swing.JButton jButton33;
        private javax.swing.JButton jButton5;
        private javax.swing.JButton jButton7;
        private javax.swing.JButton jButton8;
        private javax.swing.JButton jButton89;
        private javax.swing.JButton jButton9;
        private javax.swing.JLabel jLabel10;
        private javax.swing.JLabel jLabel11;
        private javax.swing.JLabel jLabel12;
        private javax.swing.JLabel jLabel13;
        private javax.swing.JLabel jLabel14;
        private javax.swing.JLabel jLabel15;
        private javax.swing.JLabel jLabel16;
        private javax.swing.JLabel jLabel3;
        private javax.swing.JLabel jLabel4;
        private javax.swing.JLabel jLabel5;
        private javax.swing.JLabel jLabel6;
        private javax.swing.JLabel jLabel7;
        private javax.swing.JLabel jLabel8;
        private javax.swing.JLabel jLabel9;
        private javax.swing.JScrollPane jScrollPane10;
        private javax.swing.JScrollPane jScrollPane2;
        private javax.swing.JScrollPane jScrollPane4;
        private javax.swing.JScrollPane jScrollPane5;
        private javax.swing.JScrollPane jScrollPane6;
        private javax.swing.JScrollPane jScrollPane7;
        private javax.swing.JScrollPane jScrollPane8;
        private javax.swing.JScrollPane jScrollPane9;
        private javax.swing.JSeparator jSeparator2;
        private javax.swing.JSeparator jSeparator3;
        private javax.swing.JSeparator jSeparator4;
        private javax.swing.JSeparator jSeparator5;
        private javax.swing.JSeparator jSeparator6;
        private javax.swing.JSeparator jSeparator7;
        private javax.swing.JSeparator jSeparator8;
        private javax.swing.JTextArea jTextArea10;
        private javax.swing.JTextArea jTextArea2;
        private javax.swing.JTextArea jTextArea4;
        private javax.swing.JTextArea jTextArea5;
        private javax.swing.JTextArea jTextArea6;
        private javax.swing.JTextArea jTextArea7;
        private javax.swing.JTextArea jTextArea8;
        private javax.swing.JTextArea jTextArea9;
        private javax.swing.JPanel mainPanel;
        public javax.swing.JPanel pickQuiz;
        public javax.swing.JPanel pickTest;
        public javax.swing.JPanel view;
     
    }


    post #3 sorry

  20. #20
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    Where is the call to setText() for jLabel4? I still don't see it.

    What did you change in the code between the code in post#3 and post#19?
    If you don't understand my answer, don't ignore it, ask a question.

  21. #21
    Junior Member
    Join Date
    Aug 2012
    Posts
    26
    My Mood
    Nerdy
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: adding int when you press a jbutton

    no...
    (wish it was not the holidays for school but my teacher don't know this ether -shi-)

    and some of the code i cant change because of the editor > NetBeans <

  22. #22
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: adding int when you press a jbutton

    If there wasn't any changes to the code, posting it a second time is a waste of time.

    This program is WAY TOO BIG for working on this problem. If you want anyone to load the code and work with it, you need to make a small, complete program that compiles. executes and shows the problem
    All the program needs for testing is a button and a JLabel that will be updated when the button is pressed, nothing more. I would think there would be less than 100 lines.

    I'm done for tonight. Back tomorrow.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. JButton, adding a Listener to stop and start?
    By spunkyk014 in forum Object Oriented Programming
    Replies: 1
    Last Post: November 16th, 2012, 09:30 AM
  2. Int not adding up right.
    By theostorm in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 18th, 2012, 11:41 AM
  3. Adding an actionlistener to a JButton with no text
    By captain in forum AWT / Java Swing
    Replies: 1
    Last Post: April 5th, 2012, 02:20 PM
  4. Auto Update JLabel on JButton Press?
    By Java Programmer in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 11th, 2012, 06:55 PM
  5. Error when adding ActionListener to JButton
    By grimrader22 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 10th, 2011, 06:53 AM

Tags for this Thread