0

I'm trying to get 3 different panels to overlap eachother.

Simple description: I've got a simple map and on top of this map I need a Compass and a few Textfields.

What would be the best approach in fixing this issue?

On desktop.

(Java)

Angelo Fuchs
  • 9,825
  • 1
  • 35
  • 72
  • 1
    In which platform do you want to do this? Android, Web, desktop? – McSas Apr 23 '12 at 17:31
  • 1
    Possible duplicate [Java Swing - how to show a panel on top of another panel?](http://stackoverflow.com/q/852631/1048330) – tenorsax Apr 23 '12 at 17:32

1 Answers1

3

Good question and you can indeed. You need to use the JLayeredPane. From the looks of things it works similar to ordinary panes except you can specify which layer certain components reside.

rflood89
  • 694
  • 2
  • 6
  • 11