Last updated 2004-06-28 by Roedy
Green ©1996-2004 Canadian Mind Products
Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
You are here : home : Java Glossary : P words : pane.
Not only does JFrames use panes, so does JApplet, JDialog, JInternalFrame and JWindow but not JPanel.
Note there is no Pane or JPane class.
| Pieces of a JFrame | |||
|---|---|---|---|
| Name | What Is It For? | How Created | Methods |
| frame | Master object for the frame. Automatically creates the other pieces. |
JFrame frame = newJFrame(); |
getContentPane
getGlassPane getRootPane invalidate setBackground setFont setForeground setVisible validate |
| contentPane | keeps track of the Components contained in the frame. |
Container contentPane = frame.getContentPane(); |
add
remove setLayout |
| glassPane | A transparent canvas overlaying the contentPane. You use it typically for sprite animations. You do much of your drawing with colours with alpha channel values not = 0xff, to allow the contentPane to show through. I have not yet experimented to discover how its co-ordinate system meshes with the content pane's. |
Component glassPane = frame.getGlassPane(); |
|
| rootPane | deals with the decoration around the outside of the frame. |
JRootPane rootPane = frame.getRootPane(); |
setJMenuBar
setWindowDecorationStyle |
home |
Canadian Mind Products | |||
| mindprod.com IP:[24.87.56.253] | ||||
| Your IP:[80.134.30.163] | ||||
| You are visitor number 2038. | ||||
| Please send errors, omissions and suggestions | ||||
| to improve this page to Roedy Green. | ||||
| You can get a fresh copy of this page from: | or possibly from your local J: drive mirror: | |||
| http://mindprod.com/jgloss/pane.html | J:\mindprod\jgloss\pane.html | |||