This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 1076
    
  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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help pringing 2d array to GridLayout GUI
 
Similar Threads
Battleships - guys please help me out!
Just wanted to share my code SudokuSolver !
Exception -- java.lang.StackOverflowError
Too many ActionEvents after button press.
Putting pieces inside a board