When you specify the frame size, make it 16 pixels wider and 36 pixels taller than you need for the contents to allow room for the top frame bar. To add to the confusion, the origin is in the top corner under the frame bar. So you must add 36 to all your y coordinates inside a frame.
// turn off the entire frame bar, including title, close, minimize, resize... frame.setUndecorated( true ); // turn off just resizing controls frame.setResizable( false );
// You can control the current state of the Frame, // but you cannot disable the corresponding user controls. // To control the widgets, use a JInternalFrame. frame.setExtendedState( NORMAL ); frame.setExtendedState( ICONIFIED ); frame.setExtendedState( MAXIMIZED_HORIZ ); frame.setExtendedState( MAXIMIZED_VERT ); frame.setExtendedState( MAXIMIZED_BOTH );
The Swing equivalent of a Frame is called a JFrame.
The term frame has a different meaning in datacommunications. Data are usually transmitted in bursts. Each burst is called a frame. It usually has some additional information such as the frame number, the size of the block, the error-checking code and markers for the start and end.
In HTML (Hypertext Markup Language), frame refers to the independently scrollable panels on your browser screen.
This page is posted |
http://mindprod.com/jgloss/frame.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\frame.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.118.0.170] |
| |
Feedback |
You are visitor number | |