Hi, I am very new to Java and am using Breezy Swing. I basically need to create an array of JButtons (26 in total) and display them on a form (9 on the top row, 9 in the middle and 8 on the bottom) and I have no idea of how to do this... As I said I am very new to this.
I can create a standard 1D array containing strings etc... so I assume that it uses the same syntax. Can anyone help me with this?
Thanks in advance!
Shaun
Read a good book or tutorial. Then when you have some actual code going, post it here with relevant questions. Tee he he.
:cool:
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
Object[] = 1D
Object[][] = 2D
Object[][][] = 3D
See the pattern yet?
As for laying them out, I'd probably go with a GridBag layout.
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51