javax.swing
public class Popup extends Object
To obtain an instance of Popup
, use the
PopupFactory
.
protected Popup(Component owner, Component contents, int x, int y)
Popup
given its owner,
contents and the screen position where the popup
will appear.owner
- the Component to which x
and
y
are relative, or null
for
placing the popup relative to the origin of the screen.contents
- the contents that will be displayed inside
the Popup
.x
- the horizontal position where the Popup will appear.y
- the vertical position where the Popup will appear.IllegalArgumentException
- if contents
is null
.protected Popup()
Popup
.