| BebopFusion |
Nov 11th, 2004 12:05 AM |
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.
|