How to keep menu item on top of text area?
I'm using netbeans to write the GUI. I have a menu bar with few menu items and the main window has a text area all over it. when I press the menu item,I cant see it because the text area is on top (the menu item internal frame is behind the text ar开发者_JAVA技巧ea)how can I make the menu item internal frame to be on the top ?(the text area will be on the background)
thanks
I'm not sure what problem you are facing but it seems like you are looking for JLayeredPane
Some useful links:
- How to use layered pane
- How to use Internal frames
Try to specify a Z-Value index higher for the JMenu , when adding it to its container component.
精彩评论