APIdia Launch Partner
Top Description Methods
sun.jvm.hotspot.ui

public Interface FrameWrapper

Known Direct Implementers
sun.jvm.hotspot.ui.JFrameWrapper, sun.jvm.hotspot.ui.JInternalFrameWrapper
Imports
java.awt.*, java.awt.event.*, javax.swing.*

Provides uniform interface for dealing with JInternalFrames and JFrames.

Method Summary

Modifier and TypeMethod and Description
public void
public Component
getComponent()

The JInternalFrame or JFrame this wraps

public Container
public void
pack()

public void
setActivatedActionListener(ActionListener l)

Set an ActionListener to be invoked when the underlying window is activated ("windowActivated" event of a WindowListener).

public void
public void
setClosable(boolean closable)

Largely for use with JInternalFrames but also affects, for example, the default close operation for JFrames

public void
setClosingActionListener(ActionListener l)

Set an ActionListener to be invoked when the underlying window is closing ("windowClosing" event of a WindowListener).

public void
setResizable(boolean resizable)

public void
setSize(int x, int y)

public void
setVisible(boolean visible)

public void
toFront()

Move this frame to the front.

Method Detail

disposeback to summary
public void dispose()
getComponentback to summary
public Component getComponent()

The JInternalFrame or JFrame this wraps

getContentPaneback to summary
public Container getContentPane()
packback to summary
public void pack()
setActivatedActionListenerback to summary
public void setActivatedActionListener(ActionListener l)

Set an ActionListener to be invoked when the underlying window is activated ("windowActivated" event of a WindowListener).

Note

the ActionEvent passed to this listener may be null.

setBackgroundback to summary
public void setBackground(Color color)
setClosableback to summary
public void setClosable(boolean closable)

Largely for use with JInternalFrames but also affects, for example, the default close operation for JFrames

setClosingActionListenerback to summary
public void setClosingActionListener(ActionListener l)

Set an ActionListener to be invoked when the underlying window is closing ("windowClosing" event of a WindowListener).

Note

the ActionEvent passed to this listener may be null.

setResizableback to summary
public void setResizable(boolean resizable)
setSizeback to summary
public void setSize(int x, int y)
setVisibleback to summary
public void setVisible(boolean visible)
toFrontback to summary
public void toFront()

Move this frame to the front. Should change focus to the frame if possible.