Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display a 2d array in java GUI ?

 
devashish ttripathi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to print a 2D Array to display a maze composed of "#" and "." so Iam unable to insert that array in the GUi display
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2D array of JLabels in a GridLayout, or a JTable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic