|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.Popup
public class Popup
Manages a popup window that displays a Component on top of everything else.
To obtain an instance of Popup
, use the
PopupFactory
.
Constructor Summary | |
---|---|
protected |
Popup()
Constructs a new Popup . |
protected |
Popup(Component owner,
Component contents,
int x,
int y)
Constructs a new Popup given its owner,
contents and the screen position where the popup
will appear. |
Method Summary | |
---|---|
void |
hide()
Removes the Popup from the screen. |
void |
show()
Displays the Popup on the screen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
.
Method Detail |
---|
public void show()
Popup
on the screen. Nothing happens
if it is currently shown.
public void hide()
Popup
from the screen. Nothing happens
if it is currently hidden.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |