charvax.swing

Class JFrame

Implemented Interfaces:
Runnable
Known Direct Subclasses:
JPopupMenu

public class JFrame
extends Frame

In the CHARVA package, JFrame has identical functionality to Frame

Field Summary

static int
DISPOSE_ON_CLOSE
static int
DO_NOTHING_ON_CLOSE
static int
EXIT_ON_CLOSE
static int
HIDE_ON_CLOSE

Fields inherited from class charva.awt.Window

_term

Fields inherited from class charva.awt.Container

_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size

Fields inherited from class charva.awt.Component

BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT, _alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible

Constructor Summary

JFrame()
JFrame(String title_)

Method Summary

Container
getContentPane()
Dimension
minimumSize()
Overrides the corresponding method in Container.
void
setBackground(Color color_)
Sets the background color of this JFrame and its content pane.
void
setDefaultCloseOperation(int operation_)
Sets the operation that will happen by default when the user initiates a "close" on this frame.
void
setForeground(Color color_)
Sets the foreground color of this JFrame and its content pane.
void
setJMenuBar(JMenuBar menubar_)
Sets the menubar for this frame.

Methods inherited from class charva.awt.Frame

draw, getTitle, setTitle

Methods inherited from class charva.awt.Window

addWindowListener, adjustLocation, debug, draw, getLocationOnScreen, getOwner, hide, isDisplayed, isFocusTraversable, pack, processEvent, processWindowEvent, run, show

Methods inherited from class charva.awt.Container

add, add, debug, doLayout, draw, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isFocusTraversable, isValid, minimumSize, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBackground, setFocus, setForeground, setHeight, setLayout, setSize, setSize, setWidth, validate

Methods inherited from class charva.awt.Component

addFocusListener, addKeyListener, contains, contains, debug, draw, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getHeight, getLocation, getLocationOnScreen, getName, getParent, getSize, getWidth, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isTotallyObscured, isValid, isVisible, minimumSize, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestFocus, requestSync, setBackground, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor

Field Details

DISPOSE_ON_CLOSE

public static final int DISPOSE_ON_CLOSE
Field Value:
201

DO_NOTHING_ON_CLOSE

public static final int DO_NOTHING_ON_CLOSE
Field Value:
202

EXIT_ON_CLOSE

public static final int EXIT_ON_CLOSE
Field Value:
200

HIDE_ON_CLOSE

public static final int HIDE_ON_CLOSE
Field Value:
203

Constructor Details

JFrame

public JFrame()

JFrame

public JFrame(String title_)

Method Details

getContentPane

public Container getContentPane()

minimumSize

public Dimension minimumSize()
Overrides the corresponding method in Container.
Overrides:
minimumSize in interface Container

setBackground

public void setBackground(Color color_)
Sets the background color of this JFrame and its content pane.
Overrides:
setBackground in interface Container

setDefaultCloseOperation

public void setDefaultCloseOperation(int operation_)
Sets the operation that will happen by default when the user initiates a "close" on this frame. (Actually, the window is just hidden, unless the frame is the last window in the application).

setForeground

public void setForeground(Color color_)
Sets the foreground color of this JFrame and its content pane.
Overrides:
setForeground in interface Container

setJMenuBar

public void setJMenuBar(JMenuBar menubar_)
Sets the menubar for this frame.