I'm developing a game applet
I don't really want a menu bar in the game
A link to any example code?
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.
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?
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton