Hi all...
I'm developing a java application based on the old Supremacy board game...
The display is a large map of the board, which is zoomable and scrollable.
I'd like to place several components on top of this, such as an 'Empire
Earth'-esque mini-map.
I don't want to use internal frames, because I don't want/need any framing
or menu bars.
I'd also like to abstract this out into other opaque overlays to be used as
panels for other game data, such as the other Players, etc.
Please throw some suggestions out to me as to how I should proceed. Should
I be designing a custom component?
Thanks in Advance,
Joseph
Jeremy - 06 Jan 2004 21:07 GMT
If your application is inside a JFrame, you can draw onto the GlassPane.
Look up GlassPane in the API docs. You'll have to make a subclass of
GlassPane (I think) which has its own paintComponent method that draws the
HUD stuff. Then call myFrame.setGlassPane(mySubclassesGlassPane); - I
think this will be the easiest and most sensical way to do this.
-Jeremy
> Hi all...
>
[quoted text clipped - 17 lines]
>
> Joseph