Let's take a look at the description javadoc javax.swing.Popup in: Popups are used to display a Component to the user, typically on top of all the other Components in a particular containment hierarchy Popups have a very small life cycle Once.. You Have Obtained A Popup, And Hidden It (Invoked The Hide Method), You Should No Longer Invoke Any Methods on It. This Allows The PopupFactory to Cache Popups for Later USE.
.................
............................. ...CRIPLIED facies, TOEER.
You Typically Do Not Explicitly Create An Instance of Popup, Instead Obtain One from a popupfactory.
It is roughly that popup can display a component on the top floor of the window. Generally speaking, it is only a short life cycle ... and it is recommended to use PopupFactory to get an instance.
a typical usage of Popup is that tooltip you can see from Tooltip's source code.
Here is a simple example: popup mypopup = popupfactory.getsharedInstance (). GetPopup (Frame, New Jlabel ("PopupWindow", POSX, POSY); MyPopup.show (); This can only be placed on the screen with only one label Any position. Often use, when mouse movement, some temporary information, etc.