public class JInternalFrameWrapper extends java.lang.Object implements FrameWrapper
Constructor and Description |
---|
JInternalFrameWrapper(javax.swing.JInternalFrame frame) |
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 |
show() |
void |
toFront()
Move this frame to the front.
|
public JInternalFrameWrapper(javax.swing.JInternalFrame frame)
public java.awt.Component getComponent()
FrameWrapper
getComponent
in interface FrameWrapper
public java.awt.Container getContentPane()
getContentPane
in interface FrameWrapper
public void setVisible(boolean visible)
setVisible
in interface FrameWrapper
public void setSize(int x, int y)
setSize
in interface FrameWrapper
public void pack()
pack
in interface FrameWrapper
public void show()
public void dispose()
dispose
in interface FrameWrapper
public void setBackground(java.awt.Color color)
setBackground
in interface FrameWrapper
public void setResizable(boolean resizable)
setResizable
in interface FrameWrapper
public void setClosable(boolean closable)
FrameWrapper
setClosable
in interface FrameWrapper
public void setClosingActionListener(java.awt.event.ActionListener l)
FrameWrapper
setClosingActionListener
in interface FrameWrapper
public void setActivatedActionListener(java.awt.event.ActionListener l)
FrameWrapper
setActivatedActionListener
in interface FrameWrapper
public void toFront()
FrameWrapper
toFront
in interface FrameWrapper
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.