I have a JInternalFrame subclass object that I placed onto a JFrame. But when it is placed, I cant see the border of the JInternalFrame object. And when I click on the its title bar to make the border appear, the JInternalFrame disappears into the back(since I also have other JPanels filling up the JFrame already before placing the internal frame), and only when my mouse hovers over the positions of the buttons that were in the now disappeared internal frame, those buttons appear again, but not the entire internal frame.
So my question is, how could i make the internal frame modal, so that it wont go to the back until I close it? Also, how could i display the missing border of the internal frame in the beginning?
I've thought of using JOptionPane, but it seems it can only be used for small windows of OK, canel..etc
But my Internal frame is actually a buying screen for my game..
I hope someone can help me..
Thank you in advance.