Popup
Class Popup
- java.lang.Object
-
- javax.swing.Popup
public class Popup extends Object
Popups are used to display a Component
to the user, typically on top of all the other Component
s in a particular containment hierarchy. Popup
s 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 Popup
s for later use.
The general contract is that if you need to change the size of the Component
, or location of the Popup
, you should obtain a new Popup
.
Popup
does not descend from Compo