View Single Post
Old Nov 11th, 2004, 12:05 AM   #1
BebopFusion
Programmer
 
Join Date: Oct 2004
Posts: 52
Rep Power: 5 BebopFusion is on a distinguished road
Send a message via ICQ to BebopFusion
I am making a cellular automota program and was wondering how I should go about the grid. I am doing it in swing as of now. The only thought that came to mind were JPanels that would have an image icon of blue for a live cell and white for dead. This would require a lot of typing unless I am able to create the 400 or so panels with a for statement. The problem is how would the syntax be written. I would just be throwing stuff out if I tried. Does anyone have sugtgestions?

p.s. Sorry to bug you with this question but GUI is not my strong point. I've been a command line programmer. Any suggestions are appreciated. Thank you for your time.
__________________
Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration. -S. Kelley
BebopFusion is offline   Reply With Quote