Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
I'm developing a game applet
I don't really want a menu bar in the game
A link to any example code?
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
I think my main issue is I don't have any Panel, JPanel etc as the existing game doesn't use these.
Rob Camick wrote:Well, then now is a good time to learn to develop a Swing applet properly so you can take advantage of all the Swing features without reinventing the wheel yourself.
Again, the Swing tutorial shows you the proper way to do custom painting.
It's quite simple to have java without swing - you just have graphic images and display directly to these while using double buffering etc to keep the screen movement smooth while the AI runs in separate threads. I would now like to add a popup menu to this game but, if it requires a complete rewrite of the program and results in the game moving away from a realistic board towards a standard java form then I'll probably decline.Rob Camick wrote:I have no idea what your code looks like if you say you aren't using any Panels or anything like that so it is rather hard to give advice.
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
As I understand it Swing is used for the management and placement of swing components ie buttons etc
you just have graphic images and display directly to these while using double buffering etc
Is there a way of just creating a standard popup list that I can add to an existing non-swing java program?
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
"If the facts don't fit the theory, get new facts" --Albert Einstein
Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |