public class FullScreenWindow
extends java.lang.Object
FullScreenWindow
class display a full screen
component with optional tool bar. The displayed component is taken
from its parent component (if it exists) and displayed in full
screen mode by the start()
method. The component is
restored to its parent by the stop()
method. If a parent
component exists, it should have a BorderLayout
layout
manager for the component to be restored correctly.
Java support for full screen mode is not required for a
component to be displayed full screen, but some performance
degradation can occur if no Java support exists. The isFullScreenSupported()
method checks for Java full screen
mode support. Applications can safely ignore the return value
of this method if needed.
FullScreenToolBar
Constructor and Description |
---|
FullScreenWindow(java.awt.Component component,
FullScreenToolBar toolbar)
Creates a new window with the specified component and toolbar.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFullScreen()
Determines if this window is currently displayed full screen.
|
static boolean |
isFullScreenSupported()
Deprecated.
|
void |
start()
Starts full screen mode with this window.
|
void |
stop()
Ends full screen mode with this window.
|
public FullScreenWindow(java.awt.Component component, FullScreenToolBar toolbar)
component
- the component to use as the full screen
contents.toolbar
- the toolbar to use for the component, or null for
no toolbar.public void start()
java.lang.IllegalStateException
- if the graphics device is already in
full screen mode.public void stop()
java.lang.IllegalStateException
- if the graphics device is not in
full screen mode.public boolean isFullScreen()
@Deprecated public static boolean isFullScreenSupported()