In my program, if I click a button, it will pop-up a small frame-based window and I want to set it always on the top. How can I do that?
Assumed the frame-based window looks like:
JFrame myFrame = new JFrame();
Besides, if I click the OK-button on this window, it will be closed or distroyed, not using setVisable(false). How to do that?