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; }