All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----com.sun.java.swing.JFrame

public class JFrame
extends Frame

Constructor Index

 o JFrame()
Constructs a new Frame that is initially invisible.
 o JFrame(String)
Constructs a new, initially invisible Frame with the specified title.

Method Index

 o setMenuBar(JMenuBar)
Exists merely for compatibility with AWT 1.1.X.
 o update(Graphics)
Eliminate automatic clearing of the background in update().

Constructors

 o JFrame
 public JFrame()
Constructs a new Frame that is initially invisible.

See Also:
setSize, setVisible
 o JFrame
 public JFrame(String title)
Constructs a new, initially invisible Frame with the specified title.

Parameters:
title - the title for the frame
See Also:
setSize, setVisible

Methods

 o update
 public void update(Graphics g)
Eliminate automatic clearing of the background in update(). This is done because our java.awt.Frame super class clears the background before each paint(), which causes JPanel to flicker.

Overrides:
update in class Container
 o setMenuBar
 public void setMenuBar(JMenuBar menuBar)
Exists merely for compatibility with AWT 1.1.X. This does not currently add the menubar.


All Packages  Class Hierarchy  This Package  Previous  Next  Index