I have two classes ClassFrame
and ClassPanel
, now my ClassPanel
extends JPanel
and similarly by name ClassJFrame
extends JFrame
,
http://postimg.org/image/qpfgz8fpv/
Conditions with JFrame
- It already have other components like jinternalframe, jmenubar, toolbar, etc.
- I have to add and show ClassPanel in between of jframe
- ClassPanel always show above of other components
Conditions with JPanel
- I have add interfaces like Key, Mouse & MouseMotion Listeners,
- So I can move the jpanel & set visibility false by making mousepress on top right specific area
Moreover my image can illustrate what is my requirement, but now I don't know how to add panel with frame and move within it and show above of other components.
Kindly throw some light on this, thanks in advance.