APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.ui

public Class JFrameWrapper

extends Object
implements FrameWrapper
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.ui.FrameWrapper
Imports
java.awt.*, java.awt.event.*, javax.swing.*

Field Summary

Modifier and TypeField and Description
private ActionListener
private ActionListener
private JFrame
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements sun.jvm.hotspot.ui.FrameWrapper.getComponent.

The JInternalFrame or JFrame this wraps

public Container
private void
public void
public void
setActivatedActionListener(ActionListener l)

Implements sun.jvm.hotspot.ui.FrameWrapper.setActivatedActionListener.

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

public void
public void
setClosable(boolean closable)

Implements sun.jvm.hotspot.ui.FrameWrapper.setClosable.

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

public void
setClosingActionListener(ActionListener l)

Implements sun.jvm.hotspot.ui.FrameWrapper.setClosingActionListener.

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

public void
public void
public void
public void
show()

public void
toFront()

Implements sun.jvm.hotspot.ui.FrameWrapper.toFront.

Move this frame to the front.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activatedActionListenerback to summary
private ActionListener activatedActionListener
closingActionListenerback to summary
private ActionListener closingActionListener
frameback to summary
private JFrame frame
hasWindowListenerback to summary
private boolean hasWindowListener

Constructor Detail

JFrameWrapperback to summary
public JFrameWrapper(JFrame frame)

Method Detail

disposeback to summary
public void dispose()

Implements sun.jvm.hotspot.ui.FrameWrapper.dispose.

getComponentback to summary
public Component getComponent()

Implements sun.jvm.hotspot.ui.FrameWrapper.getComponent.

Doc from sun.jvm.hotspot.ui.FrameWrapper.getComponent.

The JInternalFrame or JFrame this wraps

getContentPaneback to summary
public Container getContentPane()

Implements sun.jvm.hotspot.ui.FrameWrapper.getContentPane.

maybeInstallWindowListenerback to summary
private void maybeInstallWindowListener()
packback to summary
public void pack()

Implements sun.jvm.hotspot.ui.FrameWrapper.pack.

setActivatedActionListenerback to summary
public void setActivatedActionListener(ActionListener l)

Implements sun.jvm.hotspot.ui.FrameWrapper.setActivatedActionListener.

Doc from sun.jvm.hotspot.ui.FrameWrapper.setActivatedActionListener.

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)

Implements sun.jvm.hotspot.ui.FrameWrapper.setBackground.

setClosableback to summary
public void setClosable(boolean closable)

Implements sun.jvm.hotspot.ui.FrameWrapper.setClosable.

Doc from sun.jvm.hotspot.ui.FrameWrapper.setClosable.

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

setClosingActionListenerback to summary
public void setClosingActionListener(ActionListener l)

Implements sun.jvm.hotspot.ui.FrameWrapper.setClosingActionListener.

Doc from sun.jvm.hotspot.ui.FrameWrapper.setClosingActionListener.

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)

Implements sun.jvm.hotspot.ui.FrameWrapper.setResizable.

setSizeback to summary
public void setSize(int x, int y)

Implements sun.jvm.hotspot.ui.FrameWrapper.setSize.

setVisibleback to summary
public void setVisible(boolean visible)

Implements sun.jvm.hotspot.ui.FrameWrapper.setVisible.

showback to summary
public void show()
toFrontback to summary
public void toFront()

Implements sun.jvm.hotspot.ui.FrameWrapper.toFront.

Doc from sun.jvm.hotspot.ui.FrameWrapper.toFront.

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