JDialog

JDialog Dialog inheritance, succession Dialog Window, so you can use setLocationRelativeTo (Component c) to achieve the display Dialog when c is empty, is displayed directly in front of the screen, as the component (ie JFrame or other container that you have created), it will displayed before these containers.

Guess you like

Origin www.cnblogs.com/darling1550lz/p/11374734.html