aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes help pringing 2d array to GridLayout GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help pringing 2d array to GridLayout GUI" Watch "help pringing 2d array to GridLayout GUI" New topic
Author

help pringing 2d array to GridLayout GUI

Zachary Bays
Greenhorn

Joined: Apr 27, 2013
Posts: 1
Hi! i am having problems with this code, my goal right now is simply to get the 2d array, to print to the 9 by 9 GUI... right i get an error, it can't find "gird" in Board and ButtonHandler please help me i have been working on this too long.




also this is what the txt file is that i use to load the 2d array:

5 3 0 0 7 0 0 0 0
6 0 0 1 9 5 0 0 0
0 9 8 0 0 0 0 6 0
8 0 0 0 6 0 0 0 3
4 0 0 8 0 3 0 0 1
7 0 0 0 2 0 0 0 6
0 6 0 0 0 0 2 8 0
0 0 0 4 1 9 0 0 5
0 0 0 0 8 0 0 7 9
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1083
    
  10

Hi Zachary,
Welcome to the Ranch!

Your code doesn't compile for me. I think you have not posted the class Board.

Also, your code refers to a Swing application, but you have posted this in a 'JavaFX' forum. Please CarefullyChooseOneForum before you post.
I am moving this to the Swing forum where this can be discussed further.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help pringing 2d array to GridLayout GUI