public class JFrame extends Frame
Modifier and Type | Field and Description |
---|---|
static int |
DISPOSE_ON_CLOSE |
static int |
DO_NOTHING_ON_CLOSE |
static int |
EXIT_ON_CLOSE |
static int |
HIDE_ON_CLOSE |
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
JFrame() |
JFrame(java.lang.String title_) |
Modifier and Type | Method and Description |
---|---|
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.
|
addWindowListener, adjustLocation, debug, getLocationOnScreen, getOwner, hide, isDisplayed, isFocusTraversable, pack, processEvent, processWindowEvent, run, show
add, add, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isValid, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBounds, setBounds, setBounds, setFocus, setHeight, setLayout, setSize, setSize, setWidth, validate
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getName, getParent, hasFocus, isEnabled, isRecursivelyVisible, isTotallyObscured, isVisible, processFocusEvent, processMouseEvent, repaint, requestSync, setEnabled, setLocation, setLocation, setName, setParent, setVisible, validateCursesColor
public static final int EXIT_ON_CLOSE
public static final int DISPOSE_ON_CLOSE
public static final int DO_NOTHING_ON_CLOSE
public static final int HIDE_ON_CLOSE
public Container getContentPane()
public void setJMenuBar(JMenuBar menubar_)
public Dimension minimumSize()
minimumSize
in class Container
public void setForeground(Color color_)
setForeground
in class Container
public void setBackground(Color color_)
setBackground
in class Container
public void setDefaultCloseOperation(int operation_)