Hi everyone first post. I need some help with this as you can see its a lotto program.

How would i go about comparing my matched results quick pick selects 6 nums at random and outputs them to 6 textboxs same as the draw i need to compare the results and output the matching results to a textbox.




 /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lotto;
 
import javax.swing.JOptionPane;
 
/**
 *
 * @author  
 */
 
public class LottoGui extends javax.swing.JFrame {
 
    /**
     * Creates new form LottoGui
     */
 
    public LottoGui() {
        initComponents();
    }
    int lotto[] = new int[6];
    int quickPick[] = new int[6];
    int numSelection[] = new int[6];
 
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
 
        jPanel1 = new javax.swing.JPanel();
        numberSelect = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        button1 = new javax.swing.JButton();
        Button2 = new javax.swing.JButton();
        Button3 = new javax.swing.JButton();
        button4 = new javax.swing.JButton();
        button5 = new javax.swing.JButton();
        button10 = new javax.swing.JButton();
        button15 = new javax.swing.JButton();
        button20 = new javax.swing.JButton();
        button19 = new javax.swing.JButton();
        button18 = new javax.swing.JButton();
        button17 = new javax.swing.JButton();
        button16 = new javax.swing.JButton();
        button11 = new javax.swing.JButton();
        button6 = new javax.swing.JButton();
        button7 = new javax.swing.JButton();
        button12 = new javax.swing.JButton();
        button13 = new javax.swing.JButton();
        button8 = new javax.swing.JButton();
        button9 = new javax.swing.JButton();
        button14 = new javax.swing.JButton();
        button25 = new javax.swing.JButton();
        button24 = new javax.swing.JButton();
        button23 = new javax.swing.JButton();
        button22 = new javax.swing.JButton();
        button21 = new javax.swing.JButton();
        button26 = new javax.swing.JButton();
        button27 = new javax.swing.JButton();
        button28 = new javax.swing.JButton();
        button29 = new javax.swing.JButton();
        button30 = new javax.swing.JButton();
        button35 = new javax.swing.JButton();
        button34 = new javax.swing.JButton();
        button33 = new javax.swing.JButton();
        button32 = new javax.swing.JButton();
        button31 = new javax.swing.JButton();
        quickPickButton = new javax.swing.JButton();
        startDraw = new javax.swing.JButton();
        clear = new javax.swing.JButton();
        button36 = new javax.swing.JButton();
        button37 = new javax.swing.JButton();
        button38 = new javax.swing.JButton();
        button39 = new javax.swing.JButton();
        button40 = new javax.swing.JButton();
        button41 = new javax.swing.JButton();
        button42 = new javax.swing.JButton();
        button43 = new javax.swing.JButton();
        button44 = new javax.swing.JButton();
        button45 = new javax.swing.JButton();
        checkresultsBtn = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        quickpickbox1 = new javax.swing.JTextField();
        quickpickbox2 = new javax.swing.JTextField();
        quickpickbox3 = new javax.swing.JTextField();
        quickpickbox4 = new javax.swing.JTextField();
        quickpickbox5 = new javax.swing.JTextField();
        quickpickbox6 = new javax.swing.JTextField();
        lottoresults6 = new javax.swing.JTextField();
        lottoresultsbox4 = new javax.swing.JTextField();
        lottoresultsbox3 = new javax.swing.JTextField();
        lottoresultsbox2 = new javax.swing.JTextField();
        lottoresultsbox1 = new javax.swing.JTextField();
        lottoresultsbox5 = new javax.swing.JTextField();
        numberInput12 = new javax.swing.JTextField();
        numberInput13 = new javax.swing.JTextField();
        numberInput14 = new javax.swing.JTextField();
        numberInput15 = new javax.swing.JTextField();
        numberInput16 = new javax.swing.JTextField();
        numberInput17 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
 
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Lotto");
 
        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 745, Short.MAX_VALUE)
        );
 
        button1.setText("01");
        button1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button1ActionPerformed(evt);
            }
        });
 
        Button2.setText("02");
        Button2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button2ActionPerformed(evt);
            }
        });
 
        Button3.setText("03");
        Button3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button3ActionPerformed(evt);
            }
        });
 
        button4.setText("04");
        button4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button4ActionPerformed(evt);
            }
        });
 
        button5.setText("05");
        button5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button5ActionPerformed(evt);
            }
        });
 
        button10.setText("10");
        button10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button10ActionPerformed(evt);
            }
        });
 
        button15.setText("15");
        button15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button15ActionPerformed(evt);
            }
        });
 
        button20.setText("20");
        button20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button20ActionPerformed(evt);
            }
        });
 
        button19.setText("19");
        button19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button19ActionPerformed(evt);
            }
        });
 
        button18.setText("18");
        button18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button18ActionPerformed(evt);
            }
        });
 
        button17.setText("17");
        button17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button17ActionPerformed(evt);
            }
        });
 
        button16.setText("16");
        button16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button16ActionPerformed(evt);
            }
        });
 
        button11.setText("11");
        button11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button11ActionPerformed(evt);
            }
        });
 
        button6.setText("06");
        button6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button6ActionPerformed(evt);
            }
        });
 
        button7.setText("07");
        button7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button7ActionPerformed(evt);
            }
        });
 
        button12.setText("12");
        button12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button12ActionPerformed(evt);
            }
        });
 
        button13.setText("13");
        button13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button13ActionPerformed(evt);
            }
        });
 
        button8.setText("08");
        button8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button8ActionPerformed(evt);
            }
        });
 
        button9.setText("09");
        button9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button9ActionPerformed(evt);
            }
        });
 
        button14.setText("14");
        button14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button14ActionPerformed(evt);
            }
        });
 
        button25.setText("25");
        button25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button25ActionPerformed(evt);
            }
        });
 
        button24.setText("24");
        button24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button24ActionPerformed(evt);
            }
        });
 
        button23.setText("23");
        button23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button23ActionPerformed(evt);
            }
        });
 
        button22.setText("22");
        button22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button22ActionPerformed(evt);
            }
        });
 
        button21.setText("21");
        button21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button21ActionPerformed(evt);
            }
        });
 
        button26.setText("26");
        button26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button26ActionPerformed(evt);
            }
        });
 
        button27.setText("27");
        button27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button27ActionPerformed(evt);
            }
        });
 
        button28.setText("28");
        button28.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button28ActionPerformed(evt);
            }
        });
 
        button29.setText("29");
        button29.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button29ActionPerformed(evt);
            }
        });
 
        button30.setText("30");
        button30.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button30ActionPerformed(evt);
            }
        });
 
        button35.setText("35");
        button35.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button35ActionPerformed(evt);
            }
        });
 
        button34.setText("34");
        button34.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button34ActionPerformed(evt);
            }
        });
 
        button33.setText("33");
        button33.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button33ActionPerformed(evt);
            }
        });
 
        button32.setText("32");
        button32.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button32ActionPerformed(evt);
            }
        });
 
        button31.setText("31");
        button31.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button31ActionPerformed(evt);
            }
        });
 
        quickPickButton.setText("Quick Pick");
        quickPickButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quickPickButtonActionPerformed(evt);
            }
        });
 
        startDraw.setText("Start Draw");
        startDraw.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                startDrawActionPerformed(evt);
            }
        });
 
        clear.setText("Reset");
        clear.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clearActionPerformed(evt);
            }
        });
 
        button36.setText("36");
        button36.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button36ActionPerformed(evt);
            }
        });
 
        button37.setText("37");
        button37.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button37ActionPerformed(evt);
            }
        });
 
        button38.setText("38");
        button38.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button38ActionPerformed(evt);
            }
        });
 
        button39.setText("39");
        button39.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button39ActionPerformed(evt);
            }
        });
 
        button40.setText("40");
        button40.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button40ActionPerformed(evt);
            }
        });
 
        button41.setText("41");
        button41.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button41ActionPerformed(evt);
            }
        });
 
        button42.setText("42");
        button42.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button42ActionPerformed(evt);
            }
        });
 
        button43.setText("43");
        button43.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button43ActionPerformed(evt);
            }
        });
 
        button44.setText("44");
        button44.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button44ActionPerformed(evt);
            }
        });
 
        button45.setText("45");
        button45.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                button45ActionPerformed(evt);
            }
        });
 
        checkresultsBtn.setText("Check Results");
        checkresultsBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkresultsBtnActionPerformed(evt);
            }
        });
 
        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addComponent(button37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button38)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button39)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button40)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button41)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button42)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button43)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button44)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(button45))
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(checkresultsBtn)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(button28)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button29)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button30)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button31)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button32)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button33)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button34)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button35)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button36))
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(clear, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(button19)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button20)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button21)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button22)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button23)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button24)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button25)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button26)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button27))
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(quickPickButton, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)
                            .addComponent(button1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(Button2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(Button3)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button4)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button5)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button6)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button7)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button8)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button9))
                        .addGroup(jPanel3Layout.createSequentialGroup()
                            .addComponent(startDraw, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(button10)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button11)
                            .addGap(7, 7, 7)
                            .addComponent(button12)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(button13)
                            .addGap(6, 6, 6)
                            .addComponent(button14)
                            .addGap(6, 6, 6)
                            .addComponent(button15)
                            .addGap(6, 6, 6)
                            .addComponent(button16)
                            .addGap(6, 6, 6)
                            .addComponent(button17)
                            .addGap(6, 6, 6)
                            .addComponent(button18))))
                .addContainerGap(45, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(quickPickButton, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(button8)
                        .addComponent(button9)
                        .addComponent(button7)
                        .addComponent(button6)
                        .addComponent(button5)
                        .addComponent(button4)
                        .addComponent(Button3)
                        .addComponent(Button2)
                        .addComponent(button1)))
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(button11)
                                .addComponent(button10))
                            .addComponent(button12)
                            .addComponent(button13)
                            .addComponent(button14)
                            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(button16)
                                .addComponent(button15))
                            .addComponent(button17)
                            .addComponent(button18)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(startDraw)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(clear)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(button27)
                        .addComponent(button26)
                        .addComponent(button25)
                        .addComponent(button24)
                        .addComponent(button23)
                        .addComponent(button22)
                        .addComponent(button21)
                        .addComponent(button20)
                        .addComponent(button19)))
                .addGap(6, 6, 6)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(button36)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(button33)
                        .addComponent(button34)
                        .addComponent(button35)
                        .addComponent(button32)
                        .addComponent(button31)
                        .addComponent(button30)
                        .addComponent(button29)
                        .addComponent(button28)
                        .addComponent(checkresultsBtn)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(button37)
                    .addComponent(button38)
                    .addComponent(button39)
                    .addComponent(button40)
                    .addComponent(button41)
                    .addComponent(button42)
                    .addComponent(button43)
                    .addComponent(button44)
                    .addComponent(button45))
                .addGap(6, 6, 6))
        );
 
        quickpickbox1.setEditable(false);
        quickpickbox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quickpickbox1ActionPerformed(evt);
            }
        });
 
        quickpickbox2.setEditable(false);
        quickpickbox2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quickpickbox2ActionPerformed(evt);
            }
        });
 
        quickpickbox3.setEditable(false);
        quickpickbox3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quickpickbox3ActionPerformed(evt);
            }
        });
 
        quickpickbox4.setEditable(false);
        quickpickbox4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quickpickbox4ActionPerformed(evt);
            }
        });
 
        quickpickbox5.setEditable(false);
        quickpickbox5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quickpickbox5ActionPerformed(evt);
            }
        });
 
        quickpickbox6.setEditable(false);
        quickpickbox6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                quickpickbox6ActionPerformed(evt);
            }
        });
 
        lottoresults6.setEditable(false);
        lottoresults6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lottoresults6ActionPerformed(evt);
            }
        });
 
        lottoresultsbox4.setEditable(false);
        lottoresultsbox4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lottoresultsbox4ActionPerformed(evt);
            }
        });
 
        lottoresultsbox3.setEditable(false);
        lottoresultsbox3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lottoresultsbox3ActionPerformed(evt);
            }
        });
 
        lottoresultsbox2.setEditable(false);
        lottoresultsbox2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lottoresultsbox2ActionPerformed(evt);
            }
        });
 
        lottoresultsbox1.setEditable(false);
        lottoresultsbox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lottoresultsbox1ActionPerformed(evt);
            }
        });
 
        lottoresultsbox5.setEditable(false);
        lottoresultsbox5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                lottoresultsbox5ActionPerformed(evt);
            }
        });
 
        numberInput12.setEditable(false);
        numberInput12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                numberInput12ActionPerformed(evt);
            }
        });
 
        numberInput13.setEditable(false);
        numberInput13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                numberInput13ActionPerformed(evt);
            }
        });
 
        numberInput14.setEditable(false);
        numberInput14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                numberInput14ActionPerformed(evt);
            }
        });
 
        numberInput15.setEditable(false);
        numberInput15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                numberInput15ActionPerformed(evt);
            }
        });
 
        numberInput16.setEditable(false);
        numberInput16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                numberInput16ActionPerformed(evt);
            }
        });
 
        numberInput17.setEditable(false);
        numberInput17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                numberInput17ActionPerformed(evt);
            }
        });
 
        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(lottoresultsbox1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lottoresultsbox2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lottoresultsbox3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lottoresultsbox4, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lottoresultsbox5, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lottoresults6, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(numberInput15, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(numberInput14, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(numberInput13, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(numberInput12, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(numberInput17, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(numberInput16, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(quickpickbox1, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(quickpickbox2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(quickpickbox3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(quickpickbox4, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(quickpickbox5, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(quickpickbox6, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE))))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(quickpickbox1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(quickpickbox2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(quickpickbox3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(quickpickbox4, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(quickpickbox5, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(quickpickbox6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lottoresultsbox1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lottoresultsbox2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lottoresultsbox3, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lottoresultsbox4, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lottoresultsbox5, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lottoresults6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(numberInput15, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numberInput14, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numberInput13, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numberInput12, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numberInput17, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numberInput16, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
 
        jLabel1.setText("Quick Pick  Results:");
 
        jLabel2.setText("Lotto Results:");
 
        jLabel3.setText("Matching:");
 
        javax.swing.GroupLayout numberSelectLayout = new javax.swing.GroupLayout(numberSelect);
        numberSelect.setLayout(numberSelectLayout);
        numberSelectLayout.setHorizontalGroup(
            numberSelectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(numberSelectLayout.createSequentialGroup()
                .addGroup(numberSelectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(numberSelectLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(numberSelectLayout.createSequentialGroup()
                        .addGap(87, 87, 87)
                        .addGroup(numberSelectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(73, Short.MAX_VALUE))
        );
        numberSelectLayout.setVerticalGroup(
            numberSelectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(numberSelectLayout.createSequentialGroup()
                .addGroup(numberSelectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(numberSelectLayout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(numberSelectLayout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addComponent(jLabel1)
                        .addGap(28, 28, 28)
                        .addComponent(jLabel2)
                        .addGap(28, 28, 28)
                        .addComponent(jLabel3)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(744, Short.MAX_VALUE))
        );
 
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(numberSelect, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(numberSelect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
 
        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-674)/2, (screenSize.height-422)/2, 674, 422);
    }// </editor-fold>
 
//starts draw and checks for a win
    private void startDrawActionPerformed(java.awt.event.ActionEvent evt) {                                          
 
 
        boolean noRepeat;
        for (int i = 0; i < lotto.length; i++) {
            lotto[i] = (int) (45 * Math.random());
            do {
                noRepeat = false;
                lotto[i] = (int) (45 * Math.random()) + 1;
                for (int j = 0; j < i; j++) {
                    if (lotto[i] == lotto[j]) {
                        noRepeat = true;
 
                    }
                }
            } while (noRepeat);
        }
 
        lottoresults6.setText(" " +lotto [0]);
        lottoresultsbox4.setText(""+ lotto [1]);
        lottoresultsbox3.setText(""+ lotto [2]);
        lottoresultsbox2.setText(""+ lotto [3]);
        lottoresultsbox1.setText(""+ lotto [4]);
        lottoresultsbox5.setText(""+ lotto [5]);
    }                                         
 
    private void clearActionPerformed(java.awt.event.ActionEvent evt) {                                      
        quickpickbox1.setText(" ");
        quickpickbox2.setText(" ");
        quickpickbox3.setText(" ");
        quickpickbox4.setText(" ");
        quickpickbox5.setText(" ");
        quickpickbox6.setText(" ");
        lottoresults6.setText("");
        lottoresultsbox4.setText("");
        lottoresultsbox3.setText("");
        lottoresultsbox2.setText("");
        lottoresultsbox1.setText("");
        lottoresultsbox5.setText("");
 
 
        button1.setEnabled(true);
        Button2.setEnabled(true);
        Button3.setEnabled(true);
        button4.setEnabled(true);
        button5.setEnabled(true);
        button6.setEnabled(true);
        button7.setEnabled(true);
        button8.setEnabled(true);
        button9.setEnabled(true);
        button10.setEnabled(true);
        button11.setEnabled(true);
        button12.setEnabled(true);
        button13.setEnabled(true);
        button14.setEnabled(true);
        button15.setEnabled(true);
        button16.setEnabled(true);
        button17.setEnabled(true);
        button18.setEnabled(true);
        button19.setEnabled(true);
        button20.setEnabled(true);
        button21.setEnabled(true);
        button22.setEnabled(true);
        button23.setEnabled(true);
        button24.setEnabled(true);
        button25.setEnabled(true);
        button26.setEnabled(true);
        button27.setEnabled(true);
        button28.setEnabled(true);
        button29.setEnabled(true);
        button30.setEnabled(true);
        button31.setEnabled(true);
        button32.setEnabled(true);
        button33.setEnabled(true);
        button34.setEnabled(true);
        button35.setEnabled(true);
        button36.setEnabled(true);
        button37.setEnabled(true);
        button38.setEnabled(true);
        button39.setEnabled(true);
        button40.setEnabled(true);
        button41.setEnabled(true);
        button42.setEnabled(true);
        button43.setEnabled(true);
        button44.setEnabled(true);
        button45.setEnabled(true);
 
        // TODO add your handling code here:
    }                                     
 
    private void quickPickButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                
 
        boolean noRepeat;
        for (int i = 0; i < quickPick.length; i++) {
            quickPick[i] = (int) (45 * Math.random());
            do {
                noRepeat = false;
                quickPick[i] = (int) (45 * Math.random()) + 1;
                for (int j = 0; j < i; j++) {
                    if (quickPick[i] == quickPick[j]) {
                        noRepeat = true;
 
                    }
                }
            } while (noRepeat);
 
            {
 
        quickpickbox1.setText(" " + quickPick[0]);
        quickpickbox2.setText(" " + quickPick[1]);
        quickpickbox3.setText(" " + quickPick[2]);
        quickpickbox4.setText(" " + quickPick[3]);
        quickpickbox5.setText(" " + quickPick[4]);
        quickpickbox6.setText(" " + quickPick[5]); 
        }
    }                                               
 
    }
    private void button31ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "31";
        String j = addNum(i);
        button31.setEnabled(false);           // TODO add your handling code here:
    }                                        
 
    private void button32ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "32";
        String j = addNum(i);
        button32.setEnabled(false);           // TODO add your handling code here:
    }                                        
 
    private void button33ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "33";
        String j = addNum(i);
        button33.setEnabled(false);           // TODO add your handling code here:
    }                                        
 
    private void button34ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "34";
        String j = addNum(i);
        button34.setEnabled(false);           // TODO add your handling code here:
    }                                        
 
    private void button35ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "35";
        String j = addNum(i);
        button35.setEnabled(false);           // TODO add your handling code here:
    }                                        
 
    private void button30ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "30";
        String j = addNum(i);
        button30.setEnabled(false);          // TODO add your handling code here:
    }                                        
 
    private void button29ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "29";
        String j = addNum(i);
        button29.setEnabled(false);          // TODO add your handling code here:
    }                                        
 
    private void button28ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "28";
        String j = addNum(i);
        button28.setEnabled(false);          // TODO add your handling code here:
    }                                        
 
    private void button27ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "27";
        String j = addNum(i);
        button27.setEnabled(false);
    }                                        
 
    private void button26ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "26";
        String j = addNum(i);
        button26.setEnabled(false);          // TODO add your handling code here:
    }                                        
 
    private void button21ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "21";
        String j = addNum(i);
        button21.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button22ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "22";
        String j = addNum(i);
        button22.setEnabled(false);           // TODO add your handling code here:
    }                                        
 
    private void button23ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "23";
        String j = addNum(i);
        button23.setEnabled(false);          // TODO add your handling code here:
    }                                        
 
    private void button24ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "24";
        String j = addNum(i);
        button24.setEnabled(false);          // TODO add your handling code here:
    }                                        
 
    private void button25ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "25";
        String j = addNum(i);
        button25.setEnabled(false);          // TODO add your handling code here:
    }                                        
 
    private void button14ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "14";
        String j = addNum(i);
        button14.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button9ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "9";
        String j = addNum(i);
        button9.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void button8ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "8";
        String j = addNum(i);
        button8.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void button13ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "13";
        String j = addNum(i);
        button13.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button12ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "12";
        String j = addNum(i);
        button12.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button7ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "7";
        String j = addNum(i);
        button7.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void button6ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "6";
        String j = addNum(i);
        button6.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void button11ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "11";
        String j = addNum(i);
        button11.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button16ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "16";
        String j = addNum(i);
        button16.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button17ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "17";
        String j = addNum(i);
        button17.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button18ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "18";
        String j = addNum(i);
        button18.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button19ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "19";
        String j = addNum(i);
        button19.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button20ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "20";
        String j = addNum(i);
        button20.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button15ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "15";
        String j = addNum(i);
        button15.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button10ActionPerformed(java.awt.event.ActionEvent evt) {                                         
        String i = "10";
        String j = addNum(i);
        button10.setEnabled(false);        // TODO add your handling code here:
    }                                        
 
    private void button5ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "5";
        String j = addNum(i);
        button5.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void button4ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "4";
        String j = addNum(i);
        button4.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void Button3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "3";
        String j = addNum(i);
        Button3.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void Button2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "2";
        String j = addNum (i);
        Button2.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void button1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
        String i = "1";
        String j = addNum(i);
        button1.setEnabled(false);        // TODO add your handling code here:
    }                                       
 
    private void button45ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "45";
        String j = addNum(i);
        button45.setEnabled(false);          // TODO add your handling code here:
    }
 
    private void button44ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "44";
        String j = addNum(i);
        button44.setEnabled(false);          // TODO add your handling code here:
    }
 
    private void button43ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "43";
        String j = addNum(i);
        button43.setEnabled(false);          // TODO add your handling code here:
    }
 
    private void button42ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "42";
        String j = addNum(i);
        button42.setEnabled(false);          // TODO add your handling code here:
    }
 
    private void button41ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "41";
        String j = addNum(i);
        button41.setEnabled(false);          // TODO add your handling code here:
    }
 
    private void button40ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "40";
        String j = addNum(i);
        button41.setEnabled(false);           // TODO add your handling code here:
    }
 
    private void button39ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "39";
        String j = addNum(i);
        button40.setEnabled(false);           // TODO add your handling code here:
    }
 
    private void button38ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "38";
        String j = addNum(i);
        button38.setEnabled(false);           // TODO add your handling code here:
    }
 
    private void button37ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "37";
        String j = addNum(i);
        button37.setEnabled(false);           // TODO add your handling code here:
    }
 
    private void button36ActionPerformed(java.awt.event.ActionEvent evt) {
        String i = "36";
        String j = addNum(i);
        button36.setEnabled(false);           // TODO add your handling code here:
    }
 
    private void quickpickbox6ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void quickpickbox5ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void quickpickbox4ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void quickpickbox3ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void quickpickbox2ActionPerformed(java.awt.event.ActionEvent evt) {
 
    }
 
    private void quickpickbox1ActionPerformed(java.awt.event.ActionEvent evt) {
 
    }
 
    private void lottoresults6ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void lottoresultsbox4ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void lottoresultsbox3ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void lottoresultsbox2ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void lottoresultsbox1ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void lottoresultsbox5ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void numberInput12ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void numberInput13ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void numberInput14ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void numberInput15ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void numberInput16ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void numberInput17ActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
    private void checkresultsBtnActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }
 
///Save selected numbers//Clears Selection
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * [url=http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html]How to Set the Look and Feel (The Java™ Tutorials > Creating a GUI With JFC/Swing > Modifying the Look and Feel)[/url]
         */
        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(LottoGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(LottoGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(LottoGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(LottoGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
 
        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {
 
            public void run() {
                new LottoGui().setVisible(true);
            }
        });
    }
//Method to select nummber buttons
    public String addNum (String i) {
 
        if ("".equals(quickpickbox1.getText())) {
            quickpickbox1.setText(quickpickbox1.getText() + i);
 
        } else if ("".equals(quickpickbox2.getText())) {
            quickpickbox2.setText(quickpickbox2.getText() + i);
 
        } else if ("".equals(quickpickbox3.getText())) {
            quickpickbox3.setText(quickpickbox3.getText() + i);
 
        } else if ("".equals(quickpickbox4.getText())) {
            quickpickbox4.setText(quickpickbox4.getText() + i);
 
        } else if ("".equals(quickpickbox5.getText())) {
            quickpickbox5.setText(quickpickbox5.getText() + i);
 
        } else if ("".equals(quickpickbox6.getText())) {
            quickpickbox6.setText(quickpickbox6.getText() + i);
 
        } else if (!"".equals(quickpickbox6.getText())) {
 
        }
 
 
return i;
 
}
    // Variables declaration - do not modify
    private javax.swing.JButton Button2;
    private javax.swing.JButton Button3;
    private javax.swing.JButton button1;
    private javax.swing.JButton button10;
    private javax.swing.JButton button11;
    private javax.swing.JButton button12;
    private javax.swing.JButton button13;
    private javax.swing.JButton button14;
    private javax.swing.JButton button15;
    private javax.swing.JButton button16;
    private javax.swing.JButton button17;
    private javax.swing.JButton button18;
    private javax.swing.JButton button19;
    private javax.swing.JButton button20;
    private javax.swing.JButton button21;
    private javax.swing.JButton button22;
    private javax.swing.JButton button23;
    private javax.swing.JButton button24;
    private javax.swing.JButton button25;
    private javax.swing.JButton button26;
    private javax.swing.JButton button27;
    private javax.swing.JButton button28;
    private javax.swing.JButton button29;
    private javax.swing.JButton button30;
    private javax.swing.JButton button31;
    private javax.swing.JButton button32;
    private javax.swing.JButton button33;
    private javax.swing.JButton button34;
    private javax.swing.JButton button35;
    private javax.swing.JButton button36;
    private javax.swing.JButton button37;
    private javax.swing.JButton button38;
    private javax.swing.JButton button39;
    private javax.swing.JButton button4;
    private javax.swing.JButton button40;
    private javax.swing.JButton button41;
    private javax.swing.JButton button42;
    private javax.swing.JButton button43;
    private javax.swing.JButton button44;
    private javax.swing.JButton button45;
    private javax.swing.JButton button5;
    private javax.swing.JButton button6;
    private javax.swing.JButton button7;
    private javax.swing.JButton button8;
    private javax.swing.JButton button9;
    private javax.swing.JButton checkresultsBtn;
    private javax.swing.JButton clear;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JTextField lottoresults6;
    private javax.swing.JTextField lottoresultsbox1;
    private javax.swing.JTextField lottoresultsbox2;
    private javax.swing.JTextField lottoresultsbox3;
    private javax.swing.JTextField lottoresultsbox4;
    private javax.swing.JTextField lottoresultsbox5;
    private javax.swing.JTextField numberInput12;
    private javax.swing.JTextField numberInput13;
    private javax.swing.JTextField numberInput14;
    private javax.swing.JTextField numberInput15;
    private javax.swing.JTextField numberInput16;
    private javax.swing.JTextField numberInput17;
    private javax.swing.JPanel numberSelect;
    private javax.swing.JButton quickPickButton;
    private javax.swing.JTextField quickpickbox1;
    private javax.swing.JTextField quickpickbox2;
    private javax.swing.JTextField quickpickbox3;
    private javax.swing.JTextField quickpickbox4;
    private javax.swing.JTextField quickpickbox5;
    private javax.swing.JTextField quickpickbox6;
    private javax.swing.JButton startDraw;
    // End of variables declaration
}