Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 216 (Maintenance Release)

Uses of Class
java.awt.HeadlessException

Packages that use HeadlessException
java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. 
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
 

Uses of HeadlessException in java.applet
 

Constructors in java.applet that throw HeadlessException
Applet()
          Creates a new Applet object
 

Uses of HeadlessException in java.awt
 

Methods in java.awt that throw HeadlessException
protected  void Toolkit.loadSystemColors(int[] systemColors)
          Fills in the integer array that is supplied as an argument with the current system color values.
abstract  Dimension Toolkit.getScreenSize()
          Gets the size of the screen.
abstract  int Toolkit.getScreenResolution()
          Returns the screen resolution in dots-per-inch.
 Insets Toolkit.getScreenInsets(GraphicsConfiguration gc)
          Gets the insets of the screen.
abstract  ColorModel Toolkit.getColorModel()
          Determines the color model of this toolkit's screen.
abstract  Clipboard Toolkit.getSystemClipboard()
          Gets the singleton instance of the system Clipboard which interfaces with clipboard facilities provided by the native platform.
 int Toolkit.getMenuShortcutKeyMask()
          Determines which modifier key is the appropriate accelerator key for menu shortcuts.
 boolean Toolkit.isFrameStateSupported(int state)
          Returns whether Toolkit supports this state for Frames.
abstract  GraphicsDevice[] GraphicsEnvironment.getScreenDevices()
          Returns an array of all of the screen GraphicsDevice objects.
abstract  GraphicsDevice GraphicsEnvironment.getDefaultScreenDevice()
          Returns the default screen GraphicsDevice.
 

Constructors in java.awt that throw HeadlessException
TextField()
          Constructs a new text field.
TextField(String text)
          Constructs a new text field initialized with the specified text.
TextField(int columns)
          Constructs a new empty text field with the specified number of columns.
TextField(String text, int columns)
          Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns.
TextArea()
          Constructs a new text area with the empty string as text.
TextArea(String text)
          Constructs a new text area with the specified text.
TextArea(int rows, int columns)
          Constructs a new text area with the specified number of rows and columns and the empty string as text.
TextArea(String text, int rows, int columns)
          Constructs a new text area with the specified text, and with the specified number of rows and columns.
TextArea(String text, int rows, int columns, int scrollbars)
          Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.
Scrollbar()
          Constructs a new vertical scroll bar.
Scrollbar(int orientation)
          Constructs a new scroll bar with the specified orientation.
Scrollbar(int orientation, int value, int visible, int minimum, int maximum)
          Constructs a new scroll bar with the specified orientation, initial value, visible amount, and minimum and maximum values.
ScrollPane()
          Create a new scrollpane container with a scrollbar display policy of "as needed".
ScrollPane(int scrollbarDisplayPolicy)
          Create a new scrollpane container.
MenuItem()
          Constructs a new MenuItem with an empty label and no keyboard shortcut.
MenuItem(String label)
          Constructs a new MenuItem with the specified label and no keyboard shortcut.
MenuItem(String label, MenuShortcut s)
          Create a menu item with an associated keyboard shortcut.
PopupMenu()
          Creates a new popup menu with an empty name.
PopupMenu(String label)
          Creates a new popup menu with the specified name.
MenuComponent()
          Creates a MenuComponent.
MenuBar()
          Creates a new menu bar.
Menu()
          Constructs a new menu with an empty label.
Menu(String label)
          Constructs a new menu with the specified label.
Menu(String label, boolean tearOff)
          Constructs a new menu with the specified label, indicating whether the menu can be torn off.
Frame()
          Constructs a new instance of Frame that is initially invisible.
Frame(String title)
          Constructs a new, initially invisible Frame object with the specified title.
List()
          Creates a new scrolling list.
List(int rows)
          Creates a new scrolling list initialized with the specified number of visible lines.
List(int rows, boolean multipleMode)
          Creates a new scrolling list initialized to display the specified number of rows.
Label()
          Constructs an empty label.
Label(String text)
          Constructs a new label with the specified string of text, left justified.
Label(String text, int alignment)
          Constructs a new label that presents the specified string of text with the specified alignment.
Checkbox()
          Creates a check box with no label.
Checkbox(String label)
          Creates a check box with the specified label.
Checkbox(String label, boolean state)
          Creates a check box with the specified label and sets the specified state.
Checkbox(String label, boolean state, CheckboxGroup group)
          Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group.
Checkbox(String label, CheckboxGroup group, boolean state)
          Creates a check box with the specified label, in the specified check box group, and set to the specified state.
Choice()
          Creates a new choice menu.
CheckboxMenuItem()
          Create a check box menu item with an empty label.
CheckboxMenuItem(String label)
          Create a check box menu item with the specified label.
CheckboxMenuItem(String label, boolean state)
          Create a check box menu item with the specified label and state.
Button()
          Constructs a Button with no label.
Button(String label)
          Constructs a Button with the specified label.
 


JSR 216 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 216 specification.