Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

overlapping multiple panels

843804Dec 2 2004 — edited Dec 3 2004
I am trying to code a game.

1st problem :
I want to create a bkgrnd image and multiple panels and image buttons on top of it.

I tried using JPanel inside JFrame to get the image, but then I can't position the multiple JLabels (with imageicons) exactly where I want using the layout managers.

I tried using JDesktopPane or JLayeredPane with internal frames, but I cannot get undecorated frame inside it (no window title bar)

2nd problem : I have actionlisteners defined on invisible buttons on top of the JLabels, am not sure if thats the best way to do it.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2004
Added on Dec 2 2004
2 comments
168 views