|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IWindow
This interface is a wrapper around either a JFrame or a
JDialog.
| Method Summary | |
|---|---|
void |
addWindowListener(WindowListener windowListener)
Adds a window listener |
void |
dispose()
Disposes of the window. |
Container |
getContentPane()
Gets the content pane of the window |
int |
getHeight()
|
JRootPane |
getRootPane()
Deprecated. Uses direct accessors like setDefaultButton(JButton) |
int |
getWidth()
|
boolean |
isModal()
Returns true if the underlying implementation is modal (like
if using a JDialog). |
void |
pack()
|
void |
setDefaultButton(JButton button)
|
void |
setIcon(Icon icon)
Sets the window icon |
void |
setLocation()
Sets the location of the window according to its parent |
void |
setSize(int width,
int height)
Sets the size of the window |
void |
setTitle(String value)
Sets the title of the window |
void |
show()
Shows the window |
| Method Detail |
|---|
void addWindowListener(WindowListener windowListener)
windowListener - void dispose()
Container getContentPane()
int getHeight()
@Deprecated JRootPane getRootPane()
setDefaultButton(JButton)
int getWidth()
boolean isModal()
true if the underlying implementation is modal (like
if using a JDialog).
true if the window is modalvoid pack()
void setDefaultButton(JButton button)
void setIcon(Icon icon)
icon - Icon to setvoid setLocation()
void setSize(int width,
int height)
width - Width in pixelsheight - Height in pixelsvoid setTitle(String value)
value - Title to setvoid show()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||