Java java.awt Toolkit fields, constructors, methods, implement or subclass

Example usage for Java java.awt Toolkit fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Toolkit.

The text is from its open source code.

Method

voidaddAWTEventListener(AWTEventListener listener, long eventMask)
Adds an AWTEventListener to receive all AWTEvents dispatched system-wide that conform to the given eventMask .
voidaddPropertyChangeListener(String name, PropertyChangeListener pcl)
Adds the specified property change listener for the named desktop property.
voidbeep()
Emits an audio beep depending on native system settings and hardware capabilities.
intcheckImage(Image image, int width, int height, ImageObserver observer)
Indicates the construction status of a specified image that is being prepared for display.
CursorcreateCustomCursor(Image cursor, Point hotSpot, String name)
Creates a new custom cursor object.
ImagecreateImage(String filename)
Returns an image which gets pixel data from the specified file.
ImagecreateImage(URL url)
Returns an image which gets pixel data from the specified URL.
ImagecreateImage(ImageProducer producer)
Creates an image with the specified image producer.
ImagecreateImage(byte[] imagedata)
Creates an image which decodes the image stored in the specified byte array.
DimensiongetBestCursorSize(int preferredWidth, int preferredHeight)
Returns the supported cursor dimension which is closest to the desired sizes.
ClassgetClass()
Returns the runtime class of this Object .
ColorModelgetColorModel()
Determines the color model of this toolkit's screen.
ToolkitgetDefaultToolkit()
Gets the default toolkit.
ObjectgetDesktopProperty(String propertyName)
Obtains a value for the specified desktop property.
ImagegetImage(String filename)
Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG.
ImagegetImage(URL url)
Returns an image which gets pixel data from the specified URL.
intgetMenuShortcutKeyMask()
Determines which modifier key is the appropriate accelerator key for menu shortcuts.
PrintJobgetPrintJob(Frame frame, String jobtitle, JobAttributes jobAttributes, PageAttributes pageAttributes)
Gets a PrintJob object which is the result of initiating a print operation on the toolkit's platform.
PrintJobgetPrintJob(Frame frame, String jobtitle, Properties props)
Gets a PrintJob object which is the result of initiating a print operation on the toolkit's platform.
StringgetProperty(String key, String defaultValue)
Gets a property with the specified key and default.
InsetsgetScreenInsets(GraphicsConfiguration gc)
Gets the insets of the screen.
intgetScreenResolution()
Returns the screen resolution in dots-per-inch.
DimensiongetScreenSize()
Gets the size of the screen.
ClipboardgetSystemClipboard()
Gets the singleton instance of the system Clipboard which interfaces with clipboard facilities provided by the native platform.
EventQueuegetSystemEventQueue()
Get the application's or applet's EventQueue instance.
booleanisDynamicLayoutActive()
Returns whether dynamic layout of Containers on resize is currently enabled on the underlying operating system and/or window manager.
booleanisFrameStateSupported(int state)
Returns whether Toolkit supports this state for Frame s.
booleanprepareImage(Image image, int width, int height, ImageObserver observer)
Prepares an image for rendering.
voidremoveAWTEventListener(AWTEventListener listener)
Removes an AWTEventListener from receiving dispatched AWTEvents.
voidsetDynamicLayout(final boolean dynamic)
Controls whether the layout of Containers is validated dynamically during resizing, or statically, after resizing is complete.