public interface FrameWrapper
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.awt.Component |
getComponent()
The JInternalFrame or JFrame this wraps
|
java.awt.Container |
getContentPane() |
void |
pack() |
void |
setActivatedActionListener(java.awt.event.ActionListener l)
Set an ActionListener to be invoked when the underlying window
is activated ("windowActivated" event of a
WindowListener).
|
void |
setBackground(java.awt.Color color) |
void |
setClosable(boolean closable)
Largely for use with JInternalFrames but also affects, for
example, the default close operation for JFrames
|
void |
setClosingActionListener(java.awt.event.ActionListener l)
Set an ActionListener to be invoked when the underlying window
is closing ("windowClosing" event of a WindowListener).
|
void |
setResizable(boolean resizable) |
void |
setSize(int x,
int y) |
void |
setVisible(boolean visible) |
void |
toFront()
Move this frame to the front.
|
java.awt.Component getComponent()
java.awt.Container getContentPane()
void setVisible(boolean visible)
void setSize(int x, int y)
void pack()
void dispose()
void setBackground(java.awt.Color color)
void setResizable(boolean resizable)
void setClosable(boolean closable)
void setClosingActionListener(java.awt.event.ActionListener l)
void setActivatedActionListener(java.awt.event.ActionListener l)
void toFront()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.