| Package | Description |
|---|---|
| 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.
|
| java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.
|
| java.awt.print |
Provides classes and interfaces for a general printing API.
|
| javax.print |
Provides the principal classes and interfaces for the Java
TM Print Service API.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| Constructor and Description | |
|---|---|
Applet()
Constructs a new Applet.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Toolkit.areExtraMouseButtonsEnabled()
Reports whether events from extra mouse buttons are allowed to be processed and posted into
EventQueue.
|
protected abstract java |
Toolkit.createButton(Button
Creates this toolkit's implementation of
Button using the specified peer interface.
|
protected abstract java |
Toolkit.createCheckbox(Checkbox
Creates this toolkit's implementation of
Checkbox using the specified peer interface.
|
protected abstract java |
Toolkit.createCheckboxMenuItem(CheckboxMenuItem
Creates this toolkit's implementation of
CheckboxMenuItem using the specified peer interface.
|
protected abstract java |
Toolkit.createChoice(Choice
Creates this toolkit's implementation of
Choice using the specified peer interface.
|
Cursor |
Toolkit.createCustomCursor(Image
Creates a new custom cursor object.
|
protected abstract java |
Toolkit.createDesktopPeer(Desktop
Creates this toolkit's implementation of the
Desktop using the specified peer interface.
|
protected abstract java |
Toolkit.createDialog(Dialog
Creates this toolkit's implementation of
Dialog using the specified peer interface.
|
protected abstract java |
Toolkit.createFileDialog(FileDialog
Creates this toolkit's implementation of
FileDialog using the specified peer interface.
|
protected abstract java |
Toolkit.createFrame(Frame
Creates this toolkit's implementation of
Frame using the specified peer interface.
|
protected abstract java |
Toolkit.createLabel(Label
Creates this toolkit's implementation of
Label using the specified peer interface.
|
protected abstract java |
Toolkit.createList(List
Creates this toolkit's implementation of
List using the specified peer interface.
|
protected abstract java |
Toolkit.createMenu(Menu
Creates this toolkit's implementation of
Menu using the specified peer interface.
|
protected abstract java |
Toolkit.createMenuBar(MenuBar
Creates this toolkit's implementation of
MenuBar using the specified peer interface.
|
protected abstract java |
Toolkit.createMenuItem(MenuItem
Creates this toolkit's implementation of
MenuItem using the specified peer interface.
|
protected abstract java |
Toolkit.createPopupMenu(PopupMenu
Creates this toolkit's implementation of
PopupMenu using the specified peer interface.
|
protected abstract java |
Toolkit.createScrollbar(Scrollbar
Creates this toolkit's implementation of
Scrollbar using the specified peer interface.
|
protected abstract java |
Toolkit.createScrollPane(ScrollPane
Creates this toolkit's implementation of
ScrollPane using the specified peer interface.
|
protected abstract java |
Toolkit.createTextArea(TextArea
Creates this toolkit's implementation of
TextArea using the specified peer interface.
|
protected abstract java |
Toolkit.createTextField(TextField
Creates this toolkit's implementation of
TextField using the specified peer interface.
|
protected abstract java |
Toolkit.createWindow(Window
Creates this toolkit's implementation of
Window using the specified peer interface.
|
Dimension |
Toolkit.getBestCursorSize(int preferredWidth, int preferredHeight)
Returns the supported cursor dimension which is closest to the desired sizes.
|
Point |
GraphicsEnvironment.getCenterPoint()
Returns the Point where Windows should be centered.
|
abstract ColorModel |
Toolkit.getColorModel()
Determines the color model of this toolkit's screen.
|
abstract GraphicsDevice |
GraphicsEnvironment.getDefaultScreenDevice()
Returns the default screen
GraphicsDevice.
|
int |
Toolkit.getMaximumCursorColors()
Returns the maximum number of colors the Toolkit supports in a custom cursor palette.
|
Rectangle |
GraphicsEnvironment.getMaximumWindowBounds()
Returns the maximum bounds for centered Windows.
|
int |
Toolkit.getMenuShortcutKeyMask()
Determines which modifier key is the appropriate accelerator key for menu shortcuts.
|
Point |
Component.getMousePosition()
Returns the position of the mouse pointer in this
Component's coordinate space if the
Component is directly under the mouse pointer, otherwise returns
null.
|
Point |
Container.getMousePosition(boolean allowChildren)
Returns the position of the mouse pointer in this
Container's coordinate space if the
Container is under the mouse pointer, otherwise returns
null.
|
static int |
MouseInfo.getNumberOfButtons()
Returns the number of buttons on the mouse.
|
static PointerInfo |
MouseInfo.getPointerInfo()
Returns a
PointerInfo instance that represents the current location of the mouse pointer.
|
abstract GraphicsDevice |
GraphicsEnvironment.getScreenDevices()
Returns an array of all of the screen
GraphicsDevice objects.
|
Insets |
Toolkit.getScreenInsets(GraphicsConfiguration
Gets the insets of the screen.
|
abstract int |
Toolkit.getScreenResolution()
Returns the screen resolution in dots-per-inch.
|
abstract Dimension |
Toolkit.getScreenSize()
Gets the size of the screen.
|
abstract Clipboard |
Toolkit.getSystemClipboard()
Gets the singleton instance of the system Clipboard which interfaces with clipboard facilities provided by the native platform.
|
static Cursor |
Cursor.getSystemCustomCursor(String
Returns a system-specific custom cursor object matching the specified name.
|
Clipboard |
Toolkit.getSystemSelection()
Gets the singleton instance of the system selection as a
Clipboard object.
|
boolean |
Toolkit.isDynamicLayoutActive()
Returns whether dynamic layout of Containers on resize is currently active (both set in program (
isDynamicLayoutSet() ) , and supported by the underlying operating system and/or window manager).
|
protected boolean |
Toolkit.isDynamicLayoutSet()
Returns whether the layout of Containers is validated dynamically during resizing, or statically, after resizing is complete.
|
boolean |
Toolkit.isFrameStateSupported(int state)
Returns whether Toolkit supports this state for
Frames.
|
protected void |
Toolkit.loadSystemColors(int[] systemColors)
Fills in the integer array that is supplied as an argument with the current system color values.
|
abstract Map |
Toolkit.mapInputMethodHighlight(InputMethodHighlight
Returns a map of visual attributes for the abstract level description of the given input method highlight, or null if no mapping is found.
|
void |
Toolkit.setDynamicLayout(boolean dynamic)
Controls whether the layout of Containers is validated dynamically during resizing, or statically, after resizing is complete.
|
| Constructor and Description | |
|---|---|
Button()
Constructs a button with an empty string for its label.
|
|
Button(String
Constructs a button with the specified label.
|
|
Checkbox()
Creates a check box with an empty string for its label.
|
|
Checkbox(String
Creates a check box with the specified label.
|
|
Checkbox(String
Creates a check box with the specified label and sets the specified state.
|
|
Checkbox(String
Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group.
|
|
Checkbox(String
Creates a check box with the specified label, in the specified check box group, and set to the specified state.
|
|
CheckboxMenuItem()
Create a check box menu item with an empty label.
|
|
CheckboxMenuItem(String
Create a check box menu item with the specified label.
|
|
CheckboxMenuItem(String
Create a check box menu item with the specified label and state.
|
|
Choice()
Creates a new choice menu.
|
|
Frame()
Constructs a new instance of
Frame that is initially invisible.
|
|
Frame(String
Constructs a new, initially invisible
Frame object with the specified title.
|
|
Label()
Constructs an empty label.
|
|
Label(String
Constructs a new label with the specified string of text, left justified.
|
|
Label(String
Constructs a new label that presents the specified string of text with the specified alignment.
|
|
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.
|
|
Menu()
Constructs a new menu with an empty label.
|
|
Menu(String
Constructs a new menu with the specified label.
|
|
Menu(String
Constructs a new menu with the specified label, indicating whether the menu can be torn off.
|
|
MenuBar()
Creates a new menu bar.
|
|
MenuComponent()
Creates a
MenuComponent.
|
|
MenuItem()
Constructs a new MenuItem with an empty label and no keyboard shortcut.
|
|
MenuItem(String
Constructs a new MenuItem with the specified label and no keyboard shortcut.
|
|
MenuItem(String
Create a menu item with an associated keyboard shortcut.
|
|
PopupMenu()
Creates a new popup menu with an empty name.
|
|
PopupMenu(String
Creates a new popup menu with the specified name.
|
|
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.
|
|
TextArea()
Constructs a new text area with the empty string as 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
Constructs a new text area with the specified text.
|
|
TextArea(String
Constructs a new text area with the specified text, and with the specified number of rows and columns.
|
|
TextArea(String
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.
|
|
TextField()
Constructs a new text field.
|
|
TextField(int columns)
Constructs a new empty text field with the specified number of columns.
|
|
TextField(String
Constructs a new text field initialized with the specified text.
|
|
TextField(String
Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns.
|
| Constructor and Description | |
|---|---|
DragSource()
Creates a new
DragSource.
|
|
DropTarget()
Creates a
DropTarget.
|
|
DropTarget(Component
Creates a
DropTarget given the
Component to associate itself with, and the
DropTargetListener to handle event processing.
|
|
DropTarget(Component
Creates a
DropTarget given the
Component to associate itself with, an
int representing the default acceptable action(s) to support, and a
DropTargetListener to handle event processing.
|
|
DropTarget(Component
Creates a
DropTarget given the
Component to associate itself with, an
int representing the default acceptable action(s) to support, a
DropTargetListener to handle event processing, and a
boolean indicating if the
DropTarget is currently accepting drops.
|
|
DropTarget(Component
Creates a new DropTarget given the
Component to associate itself with, an
int representing the default acceptable action(s) to support, a
DropTargetListener to handle event processing, a
boolean indicating if the
DropTarget is currently accepting drops, and a
FlavorMap to use (or null for the default
FlavorMap).
|
| Modifier and Type | Method and Description |
|---|---|
abstract PageFormat |
PrinterJob.pageDialog(PageFormat
Displays a dialog that allows modification of a
PageFormat instance.
|
PageFormat |
PrinterJob.pageDialog(PrintRequestAttributeSet
A convenience method which displays a cross-platform page setup dialog.
|
abstract boolean |
PrinterJob.printDialog()
Presents a dialog to the user for changing the properties of the print job.
|
boolean |
PrinterJob.printDialog(PrintRequestAttributeSet
A convenience method which displays a cross-platform print dialog for all services which are capable of printing 2D graphics using the
Pageable interface.
|
| Modifier and Type | Method and Description |
|---|---|
static PrintService |
ServiceUI.printDialog(GraphicsConfiguration
Presents a dialog to the user for selecting a print service (printer).
|
| Modifier and Type | Method and Description |
|---|---|
protected JDialog |
JFileChooser.createDialog(Component
Creates and returns a new
JDialog wrapping
this centered on the
parent in the
parent's frame.
|
JDialog |
JOptionPane.createDialog(Component
Creates and returns a new
JDialog wrapping
this centered on the
parentComponent in the
parentComponent's frame.
|
static JDialog |
JColorChooser.createDialog(Component
Creates and returns a new dialog containing the specified
ColorChooser pane along with "OK", "Cancel", and "Reset" buttons.
|
JDialog |
JOptionPane.createDialog(String
Creates and returns a new parentless
JDialog with the specified title.
|
static Frame |
JOptionPane.getFrameForComponent(Component
Returns the specified component's
Frame.
|
static Frame |
JOptionPane.getRootFrame()
Returns the
Frame to use for the class methods in which a frame is not provided.
|
boolean |
JTable.print(JTable
Prints this table, as specified by the fully featured
print method, with the default printer specified as the print service.
|
boolean |
JTable.print(JTable
Prints this
JTable.
|
static int |
JOptionPane.showConfirmDialog(Component
Brings up a dialog with the options
Yes,
No and
Cancel; with the title,
Select an Option.
|
static int |
JOptionPane.showConfirmDialog(Component
Brings up a dialog where the number of choices is determined by the
optionType parameter.
|
static int |
JOptionPane.showConfirmDialog(Component
Brings up a dialog where the number of choices is determined by the
optionType parameter, where the
messageType parameter determines the icon to display.
|
static int |
JOptionPane.showConfirmDialog(Component
Brings up a dialog with a specified icon, where the number of choices is determined by the
optionType parameter.
|
int |
JFileChooser.showDialog(Component
Pops a custom file chooser dialog with a custom approve button.
|
static Color |
JColorChooser.showDialog(Component
Shows a modal color-chooser dialog and blocks until the dialog is hidden.
|
static String |
JOptionPane.showInputDialog(Component
Shows a question-message dialog requesting input from the user parented to
parentComponent.
|
static String |
JOptionPane.showInputDialog(Component
Shows a dialog requesting input from the user parented to
parentComponent with the dialog having the title
title and message type
messageType.
|
static Object |
JOptionPane.showInputDialog(Component
Prompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified.
|
static String |
JOptionPane.showInputDialog(Object
Shows a question-message dialog requesting input from the user.
|
static void |
JOptionPane.showMessageDialog(Component
Brings up an information-message dialog titled "Message".
|
static void |
JOptionPane.showMessageDialog(Component
Brings up a dialog that displays a message using a default icon determined by the
messageType parameter.
|
static void |
JOptionPane.showMessageDialog(Component
Brings up a dialog displaying a message, specifying all parameters.
|
int |
JFileChooser.showOpenDialog(Component
Pops up an "Open File" file chooser dialog.
|
static int |
JOptionPane.showOptionDialog(Component
Brings up a dialog with a specified icon, where the initial choice is determined by the
initialValue parameter and the number of choices is determined by the
optionType parameter.
|
int |
JFileChooser.showSaveDialog(Component
Pops up a "Save File" file chooser dialog.
|
| Constructor and Description | |
|---|---|
JApplet()
Creates a swing applet instance.
|
|
JFrame()
Constructs a new frame that is initially invisible.
|
|
JFrame(String
Creates a new, initially invisible
Frame with the specified title.
|