I've done a bit with Swing and I've done tons of commandline programs -- but what I'm not that familiar with the AWT.
What I am working on is a game, and I have no idea how to do the graphical side of it (I've done applications with controls (i.e. Swing), but nothing heavy in AWT). I know that I want an (multidemntinal ??) array of objects that have images, they will probably implement or extend a class that has the draw() method. I want to have them print in a grid (think Zelda map or scrable board type grid), where each grid square has a background image (ground) and optionally a token (player/object) on top of it. When the user presses an arrow I will catch the event with a listener (that's not an issue) and force the screen to refresh (which may be an issue).
Long and short I can either:
Do some sort of math to figgure out the placement of the upper left corner of each token using AWT -- or I can make each token a sqare on the board and use in Swing's GridLayout...
Which do you is easier to code?
Which is faster?
Thoughts, suggestions and comments greatly appreciated.
What I am working on is a game, and I have no idea how to do the graphical side of it (I've done applications with controls (i.e. Swing), but nothing heavy in AWT). I know that I want an (multidemntinal ??) array of objects that have images, they will probably implement or extend a class that has the draw() method. I want to have them print in a grid (think Zelda map or scrable board type grid), where each grid square has a background image (ground) and optionally a token (player/object) on top of it. When the user presses an arrow I will catch the event with a listener (that's not an issue) and force the screen to refresh (which may be an issue).
Long and short I can either:
Do some sort of math to figgure out the placement of the upper left corner of each token using AWT -- or I can make each token a sqare on the board and use in Swing's GridLayout...
Which do you is easier to code?
Which is faster?
Thoughts, suggestions and comments greatly appreciated.