Welcome to the Java Programming Forums


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


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


>> REGISTER NOW TO START POSTING


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

Page 1 of 2 12 LastLast
Results 1 to 25 of 32

Thread: Accessing && Editing properties of objects in an array. Plus a few more questions.

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Accessing && Editing properties of objects in an array. Plus a few more questions.

    Hello I'm Cameron and I am brand new to this forum and fairly new to Java.

    I got bored and decided to make a little game for both entertainment and learning purposes. I find just diving in and troubleshooting anything I do not know how to do the most effective way to learn.

    Now on to my problem. The game in question is what I simply call 'The Box Game' draw lines make boxes blah blah blah I'm sure you're familiar with it.

    The way I approached this was rather than individually create all of the possible lines and boxes 1 by 1 and name all 800 objects (bleh) I used a for loop.

    I have all of the "Play Field" creation in its own class separate from the main JFrame.
    jFramePlayArea.java
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
     
    /*
     * jFramePlayArea.java
     *
     * Created on Aug 7, 2011, 5:07:11 PM
     */
    /**
     *
     * @author Cameron
     */
     
    public class jFramePlayArea extends javax.swing.JFrame {
     
        /** Creates new form jFramePlayArea */
        public jFramePlayArea() {
            initComponents();
        }
     
        /** 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() {
     
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
     
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 956, Short.MAX_VALUE)
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGap(0, 670, Short.MAX_VALUE)
            );
     
            pack();
        }// </editor-fold>
     
        /**
         * @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 http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
             */
            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(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.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 jFramePlayArea().setVisible(true);
                }
            });
        }
        // Variables declaration - do not modify
        // End of variables declaration
    }

    CreatePlayField.java
     
    import java.awt.Point;
    import java.lang.reflect.Array;
    import javax.swing.JLabel;
     
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    /**
     *
     * @author Cameron
     */
    public class CreatePlayField {
     
        Object[] horizontalLines; //Declaring the horizontal lines array.
        Object[] verticalLines; //Declaring the vertical lines array.
        Point[] boxes; //Declaring the boxes array
     
        /** THis method creates 3 array: horizontalLines,
         * verticalLines, and boxes. They will be used to
         * easily reference the objects. The objects posi-
         * tion in its array will be used to calculate 
         * where the line is and its relation to the others
         * and then to find out if this line will complete
         * a 'box'. If so the point array containing 256
         * algorithmically generated points representing
         * the coordinates of the top left corner of the 
         * boxes that will be drawn.
         * @author Cameron Faust
         */
        public void createBoxes() {
     
            /*
             * In this section we set the arrays up.
             */
     
            //Giving the arrays their size and initializing them.
            horizontalLines = new JLabel[272];
            verticalLines = new JLabel[272];
            boxes = new Point[256];
     
            //Creating 272 JLabels for all of the vert and horiz lines
            for (int lineX = 1; lineX < 272; lineX++) {
     
                horizontalLines[lineX] = new JLabel();
                verticalLines[lineX] = new JLabel();
     
            }
     
            //Creating 256 Point variables to draw and fill the boxes when needed.
            for (int boxY = 1; boxY < 256; boxY++) {
     
                boxes[boxY] = new Point();
     
            }
     
            /*
             * In this section we will define all of the objects
             */
     
            for (int X = 1; X < 272; X++) {
     
                //Define horizontal line X properties.
                Array.get(horizontalLines,X).setBackground(new java.awt.Color(0, 0, 0));
                Array.get(horizontalLines,X).setOpaque(true);
     
                //Define vertical line X
     
            }
     
        }
    }

    Also here is how I visualize the vertical and horizontal lines the inner areas are the boxes.

    IMAG0072.jpg

    The drawing is a cut-out of the 16x16 grid I am trying to create.

    My first issue is: I have no idea how to edit the properties of an object inside of an array.

    From CreatePlayField.java
            for (int X = 1; X < 272; X++) {
     
                //Define horizontal line X properties.
                Array.get(horizontalLines,X).setBackground(new java.awt.Color(0, 0, 0));
                Array.get(horizontalLines,X).setOpaque(true);
     
                //Define vertical line X
     
            }

    The way I have written it there gives me "cannot find symbol".

    What I want to ultimately do with this is define the JLabels: Location, Opacity, Horizontal and Vertical size, and background color inside of this method so I can call it at start up and create
    all of the JLabels for the lines, and points used for the boxes.
    This question would also apply to setting the X and Y coords of the Point variables.

    Which brings me to my second question.
    How do I get the Jlabels from my second class on to the JFrame?
    I have ran into this problem before and never found a straight answer.

    I hope I havent went on a whole spiel and written some confusing mess.

    Thanks for taking the time to read my post! -Cameron


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

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    it there gives me "cannot find symbol".
    When you get an error, please copy and paste here the full text of the error message.
    Without the error message we can only guess at what your problem is.

  3. #3
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Same deal with the following line.
    Untitled.jpg

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

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    When you get an error, please copy and paste here the full text of the error message.
    Without the error message we can only guess at what your problem is.
    To copy the contents of the command prompt window:
    Click on Icon in upper left corner
    Select Edit
    Select 'Select All' - The selection will show
    Click in upper left again
    Select Edit and click 'Copy'

    Paste here.

  5. #5
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    init:
    deps-clean:
    Created dir: H:\Java\JustBoxes\build
    Updating property file: H:\Java\JustBoxes\build\built-clean.properties
    Deleting directory H:\Java\JustBoxes\build
    clean:
    init:
    deps-jar:
    Created dir: H:\Java\JustBoxes\build
    Updating property file: H:\Java\JustBoxes\build\built-jar.properties
    Created dir: H:\Java\JustBoxes\build\classes
    Created dir: H:\Java\JustBoxes\build\empty
    Created dir: H:\Java\JustBoxes\build\generated-sources\ap-source-output
    Compiling 2 source files to H:\Java\JustBoxes\build\classes
    H:\Java\JustBoxes\src\CreatePlayField.java:76: cannot find symbol
    symbol  : method setBackground(java.awt.Color)
    location: class java.lang.Object
                Array.get(horizontalLines, X).setBackground(new java.awt.Color(0, 0, 0));
    H:\Java\JustBoxes\src\CreatePlayField.java:77: cannot find symbol
    symbol  : method setOpaque(boolean)
    location: class java.lang.Object
                Array.get(horizontalLines, X).setOpaque(true);
    2 errors
    H:\Java\JustBoxes\nbproject\build-impl.xml:603: The following error occurred while executing this line:
    H:\Java\JustBoxes\nbproject\build-impl.xml:245: Compile failed; see the compiler error output for details.
    BUILD FAILED (total time: 1 second)

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

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    cannot find symbol
    symbol : method setBackground(java.awt.Color)
    location: class java.lang.Object
    The get method returns an Object. The Object class does NOT have a setBackground() method.

    Why are you using arrays of Objects vs JLabels?
    JLabel[] horizontalLines;
    ...
    horizontalLines[ X].setOpaque(true);

  7. #7
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Quote Originally Posted by Norm View Post
    The get method returns an Object. The Object class does NOT have a setBackground() method.

    Why are you using arrays of Objects vs JLabels?
    JLabel[] horizontalLines;
    ...
    horizontalLines[ X].setOpaque(true);
    Wow! I carelessly overlooked those lines when I changed these two lines:

            horizontalLines = new JLabel[272];
            verticalLines = new JLabel[272];

    I originally had them all defined as Objects rather than JLabels.

    Now I just feel silly.

  8. #8
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Now how would I add horizontalLine[X] to jFramePlayArea?

  9. #9
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    horizontalLine[X] is a reference to a JLabel. You can add it anywhere you can add a JLabel.
    aFrame.add(horizontalLine[X]); // add a JLabel to a JFrame

  10. #10
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Ran into something else. One moment.
    Last edited by CameronFaust; August 8th, 2011 at 08:52 PM.

  11. #11
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
     
    /*
     * jFramePlayArea.java
     *
     * Created on Aug 7, 2011, 5:07:11 PM
     */
    /**
     *
     * @author Cameron
     */
     
    public class jFramePlayArea extends javax.swing.JFrame {
     
        CreatePlayField createPlayField;
     
        /** Creates new form jFramePlayArea */
        public jFramePlayArea() {
            createPlayField = new CreatePlayField();
     
            initComponents();
            createPlayField.createBoxes();
        }
     
        /** 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() {
     
            jLabel1 = new javax.swing.JLabel();
     
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
     
            jLabel1.setBackground(new java.awt.Color(0, 0, 0));
            jLabel1.setOpaque(true);
     
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(530, Short.MAX_VALUE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(398, 398, 398))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(138, 138, 138)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(530, Short.MAX_VALUE))
            );
     
            pack();
        }// </editor-fold>
     
        /**
         * @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 http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
             */
            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(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.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 jFramePlayArea().setVisible(true);
                }
            });
        }
        // Variables declaration - do not modify
        private javax.swing.JLabel jLabel1;
        // End of variables declaration
    }

    import java.awt.Point;
    import javax.swing.JLabel;
     
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    /**
     *
     * @author Cameron
     */
    public class CreatePlayField {
     
        JLabel[] horizontalLines; //Declaring the horizontal lines array.
        JLabel[] verticalLines; //Declaring the vertical lines array.
        Point[] boxes; //Declaring the boxes array
        jFramePlayArea jFrameMain;
     
        /** THis method creates 3 array: horizontalLines,
         * verticalLines, and boxes. They will be used to
         * easily reference the objects. The objects posi-
         * tion in its array will be used to calculate 
         * where the line is in relation to the others
         * and then to find out if this line will complete
         * a 'box'. If so the point array containing 256
         * algorithmically generated points representing
         * the coordinates of the top left corner of the 
         * boxes which will then be used to draw a square.
         * @author Cameron Faust
         */
        public void createBoxes() {
     
            /*
             * In this section we set the arrays up.
             */
     
            //Giving the arrays their size and initializing them.
            horizontalLines = new JLabel[272];
            verticalLines = new JLabel[272];
            boxes = new Point[256];
     
            jFrameMain = new jFramePlayArea();
     
            //Variables used for creating the Box Points
            int XX;
            int YY;
            int B = 0;
            int boxY = 0;
     
            //Creating 272 JLabels for all of the vert and horiz lines
            for (int lineX = 1; lineX < 272; lineX++) {
     
                horizontalLines[lineX] = new JLabel();
                verticalLines[lineX] = new JLabel();
     
            }
     
            //Creating 256 Point variables used to draw and fill the boxes when needed.
            while (boxY < 255) {
     
                for (int A = 0; A <= 16; A++) {
     
                    //Calculating the variables used to set the points X and Y
                    XX = (A * 30) + 1;
                    YY = B * 30;
     
                    //creating the new point and setting its X and Y.
                    boxes[boxY] = new Point(XX, YY);
     
                    boxY++;
     
                    if (A == 16) {
     
                        B++;
     
                    }
     
                }
     
            }
     
            /*
             * In this section we will define all of the objects
             */
     
            for (int X = 1; X < 272; X++) {
     
                //Define horizontal line X
     
                horizontalLines[X].setBackground(new java.awt.Color(0, 0, 0));
                horizontalLines[X].setOpaque(true);
                jFrameMain.getContentPane().add(horizontalLines[X]);
                horizontalLines[X].setLocation(boxes[X]);
     
                //Define vertical line X
     
            }
     
        }
    }


    NetBeans allows me to run it now and add the lines BUT. I now get this before the program actually finishes.

    run:
    Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
    	at java.util.Hashtable.put(Hashtable.java:399)
    	at sun.java2d.Disposer.add(Disposer.java:121)
    	at sun.java2d.Disposer.addRecord(Disposer.java:89)
    	at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method)
    	at sun.java2d.windows.GDIWindowSurfaceData.<init>(GDIWindowSurfaceData.java:256)
    	at sun.java2d.windows.GDIWindowSurfaceData.createData(GDIWindowSurfaceData.java:113)
    	at sun.java2d.d3d.D3DScreenUpdateManager.createScreenSurface(D3DScreenUpdateManager.java:161)
    	at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java:394)
    	at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java:369)
    	at sun.awt.windows.WComponentPeer.setBounds(WComponentPeer.java:148)
    	at sun.awt.windows.WWindowPeer.setBounds(WWindowPeer.java:517)
    	at sun.awt.windows.WComponentPeer.initialize(WComponentPeer.java:708)
    	at sun.awt.windows.WCanvasPeer.initialize(WCanvasPeer.java:75)
    	at sun.awt.windows.WPanelPeer.initialize(WPanelPeer.java:58)
    	at sun.awt.windows.WWindowPeer.initialize(WWindowPeer.java:132)
    	at sun.awt.windows.WFramePeer.initialize(WFramePeer.java:108)
    	at sun.awt.windows.WComponentPeer.<init>(WComponentPeer.java:669)
    	at sun.awt.windows.WCanvasPeer.<init>(WCanvasPeer.java:27)
    	at sun.awt.windows.WPanelPeer.<init>(WPanelPeer.java:54)
    	at sun.awt.windows.WWindowPeer.<init>(WWindowPeer.java:128)
    	at sun.awt.windows.WFramePeer.<init>(WFramePeer.java:92)
    	at sun.awt.windows.WToolkit.createFrame(WToolkit.java:383)
    	at java.awt.Frame.addNotify(Frame.java:460)
    	at java.awt.Window.pack(Window.java:704)
    	at jFramePlayArea.initComponents(jFramePlayArea.java:61)
    	at jFramePlayArea.<init>(jFramePlayArea.java:24)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    	at CreatePlayField.createBoxes(CreatePlayField.java:42)
    	at jFramePlayArea.<init>(jFramePlayArea.java:25)
    Last edited by CameronFaust; August 8th, 2011 at 08:58 PM.

  12. #12
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    I know what it is doing now I just need to find out why. It keeps looping those two lines.

  13. #13
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Ok so no more stack overflow due to me calling the createBoxes method via a button click. But now I have a null pointer exception.

    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
     
    /*
     * jFramePlayArea.java
     *
     * Created on Aug 7, 2011, 5:07:11 PM
     */
    /**
     *
     * @author Cameron
     */
    public class jFramePlayArea extends javax.swing.JFrame {
     
        CreatePlayField createPlayField;
     
        /** Creates new form jFramePlayArea */
        public jFramePlayArea() {
     
            initComponents();
     
        }
     
        /** 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() {
     
            jButton1 = new javax.swing.JButton();
     
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
     
            jButton1.setText("jButton1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
                }
            });
     
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jButton1)
                    .addContainerGap(985, Short.MAX_VALUE))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(756, Short.MAX_VALUE)
                    .addComponent(jButton1)
                    .addContainerGap())
            );
     
            pack();
        }// </editor-fold>
     
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
     
            createPlayField = new CreatePlayField();
            createPlayField.createBoxes();
     
    }
     
        /**
         * @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 http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
             */
            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(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.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 jFramePlayArea().setVisible(true);
                }
            });
        }
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        // End of variables declaration
    }

     
    import java.awt.Point;
    import javax.swing.JLabel;
     
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    /**
     *
     * @author Cameron
     */
    public class CreatePlayField {
     
        JLabel[] horizontalLines; //Declaring the horizontal lines array.
        JLabel[] verticalLines; //Declaring the vertical lines array.
        Point[] boxes; //Declaring the boxes array
        jFramePlayArea jFrameMain;
     
        /** THis method creates 3 array: horizontalLines,
         * verticalLines, and boxes. They will be used to
         * easily reference the objects. The objects posi-
         * tion in its array will be used to calculate 
         * where the line is in relation to the others
         * and then to find out if this line will complete
         * a 'box'. If so the point array containing 256
         * algorithmically generated points representing
         * the coordinates of the top left corner of the 
         * boxes which will then be used to draw a square.
         * @author Cameron Faust
         */
        public void createBoxes() {
     
            jFrameMain = new jFramePlayArea();
     
            /*
             * In this section we set the arrays up.
             */
     
            //Giving the arrays their size and initializing them.
            horizontalLines = new JLabel[272];
            verticalLines = new JLabel[272];
            boxes = new Point[256];
     
     
     
            //Variables used for creating the Box Points
            int XX;
            int YY;
            int B = 0;
            int boxY = 0;
     
            //Creating 272 JLabels for all of the vert and horiz lines
            for (int lineX = 1; lineX < 272; lineX++) {
     
                horizontalLines[lineX] = new JLabel();
                verticalLines[lineX] = new JLabel();
     
            }
     
            //Creating 256 Point variables used to draw and fill the boxes when needed.
            while (boxY < 255) {
     
                for (int A = 0; A <= 16; A++) {
     
                    //Calculating the variables used to set the points X and Y
                    XX = (A * 30) + 1;
                    YY = B * 30;
     
                    //creating the new point and setting its X and Y.
                    boxes[boxY] = new Point(XX, YY);
     
                    boxY++;
     
                    if (A == 16) {
     
                        B++;
     
                    }
     
                }
     
            }
     
            /*
             * In this section we will define all of the objects
             */
     
            for (int X = 1; X < 272; X++) {
     
                //Define horizontal line X
     
                horizontalLines[X].setBackground(new java.awt.Color(0, 0, 0));
                horizontalLines[X].setOpaque(true);
                horizontalLines[X].setText("");
                horizontalLines[X].setSize(28, 2);
                jFrameMain.getRootPane().add(horizontalLines[X]);
                horizontalLines[X].setVisible(true);
                horizontalLines[X].setLocation(boxes[X]);
     
     
                //Define vertical line X
     
            }
     
        }
    }

    And the error.
    run:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at java.awt.Component.setLocation(Component.java:2018)
    	at CreatePlayField.createBoxes(CreatePlayField.java:99)
    	at jFramePlayArea.jButton1ActionPerformed(jFramePlayArea.java:69)
    	at jFramePlayArea.access$000(jFramePlayArea.java:15)
    	at jFramePlayArea$1.actionPerformed(jFramePlayArea.java:42)
    	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    	at java.awt.Component.processMouseEvent(Component.java:6288)
    	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    	at java.awt.Component.processEvent(Component.java:6053)
    	at java.awt.Container.processEvent(Container.java:2041)
    	at java.awt.Component.dispatchEventImpl(Component.java:4651)
    	at java.awt.Container.dispatchEventImpl(Container.java:2099)
    	at java.awt.Component.dispatchEvent(Component.java:4481)
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    	at java.awt.Container.dispatchEventImpl(Container.java:2085)
    	at java.awt.Window.dispatchEventImpl(Window.java:2478)
    	at java.awt.Component.dispatchEvent(Component.java:4481)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
    	at java.awt.EventQueue.access$000(EventQueue.java:84)
    	at java.awt.EventQueue$1.run(EventQueue.java:602)
    	at java.awt.EventQueue$1.run(EventQueue.java:600)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    	at java.awt.EventQueue$2.run(EventQueue.java:616)
    	at java.awt.EventQueue$2.run(EventQueue.java:614)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    BUILD SUCCESSFUL (total time: 4 seconds)

  14. #14
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    So I fixed the nullPointerException, it had to do with some of the arrays.

    Everything runs fine now. I can activate the method and everything goes through. Ive debugged it step by step but nothing shows up on the form.
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
     
    /*
     * jFramePlayArea.java
     *
     * Created on Aug 7, 2011, 5:07:11 PM
     */
    /**
     *
     * @author Cameron
     */
    public class jFramePlayArea extends javax.swing.JFrame {
     
        CreatePlayField createPlayField;
     
        /** Creates new form jFramePlayArea */
        public jFramePlayArea() {
     
            initComponents();
     
        }
     
        /** 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() {
     
            jButton1 = new javax.swing.JButton();
            jPanelBoxes = new javax.swing.JPanel();
            jLabel1 = new javax.swing.JLabel();
     
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
     
            jButton1.setText("jButton1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
                }
            });
     
            jLabel1.setBackground(new java.awt.Color(0, 0, 0));
     
            javax.swing.GroupLayout jPanelBoxesLayout = new javax.swing.GroupLayout(jPanelBoxes);
            jPanelBoxes.setLayout(jPanelBoxesLayout);
            jPanelBoxesLayout.setHorizontalGroup(
                jPanelBoxesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelBoxesLayout.createSequentialGroup()
                    .addContainerGap(614, Short.MAX_VALUE)
                    .addComponent(jLabel1)
                    .addGap(434, 434, 434))
            );
            jPanelBoxesLayout.setVerticalGroup(
                jPanelBoxesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelBoxesLayout.createSequentialGroup()
                    .addGap(108, 108, 108)
                    .addComponent(jLabel1)
                    .addContainerGap(631, 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(jPanelBoxes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton1))
                    .addContainerGap())
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPanelBoxes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jButton1)
                    .addContainerGap())
            );
     
            pack();
        }// </editor-fold>
     
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
     
            createPlayField = new CreatePlayField();
            createPlayField.createBoxes();
     
    }
     
        /**
         * @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 http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
             */
            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(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(jFramePlayArea.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 jFramePlayArea().setVisible(true);
                }
            });
        }
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JLabel jLabel1;
        public javax.swing.JPanel jPanelBoxes;
        // End of variables declaration
    }

     
    import java.awt.Point;
    import javax.swing.JLabel;
     
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    /**
     *
     * @author Cameron
     */
    public class CreatePlayField {
     
        JLabel[] horizontalLines; //Declaring the horizontal lines array.
        JLabel[] verticalLines; //Declaring the vertical lines array.
        Point[] boxes; //Declaring the boxes array
        jFramePlayArea jFrameMain;
     
        /** THis method creates 3 array: horizontalLines,
         * verticalLines, and boxes. They will be used to
         * easily reference the objects. The objects posi-
         * tion in its array will be used to calculate 
         * where the line is in relation to the others
         * and then to find out if this line will complete
         * a 'box'. If so the point array containing 256
         * algorithmically generated points representing
         * the coordinates of the top left corner of the 
         * boxes which will then be used to draw a square.
         * @author Cameron Faust
         */
        public void createBoxes() {
     
            jFrameMain = new jFramePlayArea();
     
            /*
             * In this section we set the arrays up.
             */
     
            //Giving the arrays their size and initializing them.
            horizontalLines = new JLabel[272];
            verticalLines = new JLabel[272];
            boxes = new Point[272];
     
     
     
            //Variables used for creating the Box Points
            int XX;
            int YY;
            int B = 0;
            int boxY = 0;
     
            //Creating 272 JLabels for all of the vert and horiz lines
            for (int lineX = 1; lineX < 272; lineX++) {
     
                horizontalLines[lineX] = new JLabel();
                verticalLines[lineX] = new JLabel();
     
            }
     
            //Creating 256 Point variables used to draw and fill the boxes when needed.
            while (boxY < 272) {
     
                for (int A = 0; A <= 16; A++) {
     
                    //Calculating the variables used to set the points X and Y
                    XX = (A * 30) + 1;
                    YY = B * 30;
     
                    //creating the new point and setting its X and Y.
                    boxes[boxY] = new Point(XX, YY);
     
                    boxY++;
     
                    if (A == 16) {
     
                        B++;
     
                    }
                }
            }
     
            /*
             * In this section we will define all of the objects
             */
     
            for (int X = 1; X < 272; X++) {
     
                //Define horizontal line X
     
                horizontalLines[X].setBackground(new java.awt.Color(0, 0, 0));
                horizontalLines[X].setOpaque(true);
                horizontalLines[X].setLocation(boxes[X]);
                horizontalLines[X].setSize(28, 2);
                horizontalLines[X].setText("");
                jFrameMain.jPanelBoxes.add(horizontalLines[X]);
                horizontalLines[X].setVisible(true);
     
                //Define vertical line X
     
            }
     
        }
    }

  15. #15
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    nothing shows up on the form.
    When I execute it I get one button in the lower left corner labeled: jbutton1

  16. #16
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Sorry, what I meant to say was when I click the button nothing happens.
    I did debug step by step:
     for (int X = 1; X < 272; X++) {
     
                //Define horizontal line X
     
                horizontalLines[X].setBackground(new java.awt.Color(0, 0, 0));
                horizontalLines[X].setOpaque(true);
                horizontalLines[X].setLocation(boxes[X]);
                horizontalLines[X].setSize(28, 2);
                horizontalLines[X].setText("");
                jFrameMain.jPanelBoxes.add(horizontalLines[X]);
                horizontalLines[X].setVisible(true);
     
                //Define vertical line X
     
            }

    And as this loop runs no objects appear in the jPanel that I created.

    Are they not being initialized properly? I'm baffled at this point.

  17. #17
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    when I click the button nothing happens.
    What do you want or expect to happen?
    Try debugging your code by adding printlns to the places where you think something should happen.
    The output will show you if the code there was executed.

  18. #18
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    I want it to create the labels which are used to make up the boxes. Like my white board image in my first post.

  19. #19
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    I want it to create the labels
    Can you explain why you are having problems creating labels? You can create a label like this:
    JLabel aLabel = new JLabel("Some text");


    no objects appear in the jPanel that I created.
    Where is the JPanel defined? What is its variable name? Where is it added to a container that is being displayed? Where do you create and display the window/frame that contains the panel?

  20. The Following User Says Thank You to Norm For This Useful Post:

    CameronFaust (August 9th, 2011)

  21. #20
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Quote Originally Posted by Norm View Post
    Can you explain why you are having problems creating labels? You can create a label like this:
    JLabel aLabel = new JLabel("Some text");

    I am trying for something like this: Dots and Boxes

    Where is the JPanel defined? What is its variable name? Where is it added to a container that is being displayed? Where do you create and display the window/frame that contains the panel?
    I'm using the JLabels with no image or text to create a 2x38 pixel black line.
                horizontalLines[X].setBackground(new java.awt.Color(0, 0, 0));
                horizontalLines[X].setOpaque(true);
                horizontalLines[X].setSize(28, 2);

    When I run the program and click the JButton I made to fire the createBoxes() method I expect it to make 17 rows of JLabels with 16 JLabels in each row in the jPanelBoxes.

    The JPanel jPanelBoxesis defined in the initComponents() method in jFramePlayArea.java.
    It is added in jFramePlayArea.jave here:

            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(jPanelBoxes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton1))
                    .addContainerGap())
            );

    And the Form is created and displayed here:

            java.awt.EventQueue.invokeLater(new Runnable() {
     
                public void run() {
                    new jFramePlayArea().setVisible(true);
                }
            });
        }

    Also I attached my NetBeans project file.

    https://docs.google.com/leaf?id=0B9u...yZmE0&hl=en_US

  22. #21
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Your starting frame shows with one button on it.
    Look at that code and see what it does and what you have not done in the code that is not working.
    Obviously you have all the right code for the first frame to show. So look at it and see what is missing for the second frame.

    Also I attached my NetBeans project file.
    Sorry I don't use an IDE.

  23. #22
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    The second JPanel is there you cannot see it because there is no border turned on.

    I got rid of the second Panel and am trying to add the JLabels that are created in my second class to the main Frame that shows with the button.
    This is the only code that changed.
                horizontalLines[X].setBackground(new java.awt.Color(0, 0, 0));
                horizontalLines[X].setOpaque(true);
                horizontalLines[X].setLocation(boxes[X]);
                horizontalLines[X].setPreferredSize(new Dimension(28, 2));   --------------Here
                horizontalLines[X].setText("");
                horizontalLines[X].setVisible(true);
                jFrameMain.getContentPane().add(horizontalLines[X]);  ----------Here

    No labels appear on jFramePlayArea like I want them to.

  24. #23
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    One difference between the two frames you create. You do this for the first frame:
    new jFramePlayArea().setVisible(true); // Create first frame and set visible

    You create a second frame here in createBoxes:
    jFrameMain = new JFramePlayArea(); // Create a second frame here <<<<<<<<<<
    but you never set it visible???

  25. #24
    Junior Member
    Join Date
    Aug 2011
    Posts
    21
    My Mood
    Amused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    Quote Originally Posted by Norm View Post
    One difference between the two frames you create. You do this for the first frame:
    new jFramePlayArea().setVisible(true); // Create first frame and set visible

    You create a second frame here in createBoxes:
    jFrameMain = new JFramePlayArea(); // Create a second frame here <<<<<<<<<<
    but you never set it visible???
    Yes this does make a second Form show but this isnt what I'm trying to do, nor do the labels show on the new form.
    I want to make the labels appear on the first and only form.

  26. #25
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Accessing && Editing properties of objects in an array. Plus a few more questions

    I want to make the labels appear on the first and only form.
    Then change your code so there is only one frame created and add your components to that frame.

Page 1 of 2 12 LastLast

Similar Threads

  1. all objects in array the same?
    By abrohm in forum What's Wrong With My Code?
    Replies: 6
    Last Post: June 17th, 2011, 11:21 AM
  2. editing array
    By silverspoon34 in forum Object Oriented Programming
    Replies: 1
    Last Post: April 15th, 2011, 01:40 AM
  3. Accessing Properties File
    By java_mein in forum Java Servlet
    Replies: 5
    Last Post: May 14th, 2010, 02:44 AM
  4. Vectors - accessing an unknown amount of objects
    By fox in forum Loops & Control Statements
    Replies: 1
    Last Post: May 7th, 2010, 03:54 PM
  5. [SOLVED] Problem accessing specific data in an array and getting it to return properly
    By Universalsoldja in forum Collections and Generics
    Replies: 3
    Last Post: February 4th, 2010, 04:26 PM