Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help pringing 2d array to GridLayout GUI

 
Zachary Bays
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic