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
-
JFrame()
- Constructs a new Frame that is initially invisible.
-
JFrame(String)
- Constructs a new, initially invisible Frame with the specified
title.
-
setMenuBar(JMenuBar)
- Exists merely for compatibility with AWT 1.1.X.
-
update(Graphics)
- Eliminate automatic clearing of the background in update().
JFrame
public JFrame()
- Constructs a new Frame that is initially invisible.
- See Also:
- setSize, setVisible
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
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
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