Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Panel grid  RSS feed

 
S. Shree
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am looking to create a panel grid like this :

[] [] [] [] []
[] [] [] [] []
[] [] [] [] []

I have taken an array for that purpose:



I also took a for loop to display them.



But when I run my app the panels did not load as intended, I tried changing the layout manager but didn't work. I am a beginner at java any help would really be nice. By the b is a reference variable for a object of the type JFrame.

Thanks in advance
[ June 25, 2008: Message edited by: rash exponent ]
 
S. Shree
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found out the solution myself. For those who are having same problem - I used the GridLayout for the panel that holds the array of panels.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!