Re: Java Windows question..
JTapio wrote:
--(I have done similar things, but until I understand exactly
--what you are trying to do, what it looks like in the applet,
--and what actions cause the frame/window to appear - I
--cannot help much)
....
my applet is only for options and opening graphics..
my plan is to make a fullscreen window or frame (i dont know either is
better) from this applet, then i mouselisten and keyboard listen this
window/frame and then but my warboard graphics on it..
Since the game play ends up with a free floating window,
I think you should abandon the applet entirely and
use webstart to launch the game.
You might have the options 'panel' appear in a JOptionPane
before the game appears, but better might be putting it into a
floatable JToolBar on one edge of the game play area, or
showing it whenever a menu item is selected.
For the 'floating game area' a frame (JFrame) would probably
be better than a JWindow, since a JFrame is more what
the user expects, and can be resized to full screen if they
want.
As far as the game goes, I would paint it in a Container that
I then add to the other things (like the JFrame).
But having the applet itself, makes no sense to me.
Andrew T.