Example usage for Java java.awt Toolkit fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addAWTEventListener(AWTEventListener listener, long eventMask) Adds an AWTEventListener to receive all AWTEvents dispatched system-wide that conform to the given eventMask . |
void | addPropertyChangeListener(String name, PropertyChangeListener pcl) Adds the specified property change listener for the named desktop property. |
void | beep() Emits an audio beep depending on native system settings and hardware capabilities. |
int | checkImage(Image image, int width, int height, ImageObserver observer) Indicates the construction status of a specified image that is being prepared for display. |
Cursor | createCustomCursor(Image cursor, Point hotSpot, String name) Creates a new custom cursor object. |
Image | createImage(String filename) Returns an image which gets pixel data from the specified file. |
Image | createImage(URL url) Returns an image which gets pixel data from the specified URL. |
Image | createImage(ImageProducer producer) Creates an image with the specified image producer. |
Image | createImage(byte[] imagedata) Creates an image which decodes the image stored in the specified byte array. |
Dimension | getBestCursorSize(int preferredWidth, int preferredHeight) Returns the supported cursor dimension which is closest to the desired sizes. |
Class> | getClass() Returns the runtime class of this Object . |
ColorModel | getColorModel() Determines the color model of this toolkit's screen. |
Toolkit | getDefaultToolkit() Gets the default toolkit. |
Object | getDesktopProperty(String propertyName) Obtains a value for the specified desktop property. |
Image | getImage(String filename) Returns an image which gets pixel data from the specified file, whose format can be either GIF, JPEG or PNG. |
Image | getImage(URL url) Returns an image which gets pixel data from the specified URL. |
int | getMenuShortcutKeyMask() Determines which modifier key is the appropriate accelerator key for menu shortcuts. |
PrintJob | getPrintJob(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. |
PrintJob | getPrintJob(Frame frame, String jobtitle, Properties props) Gets a PrintJob object which is the result of initiating a print operation on the toolkit's platform. |
String | getProperty(String key, String defaultValue) Gets a property with the specified key and default. |
Insets | getScreenInsets(GraphicsConfiguration gc) Gets the insets of the screen. |
int | getScreenResolution() Returns the screen resolution in dots-per-inch. |
Dimension | getScreenSize() Gets the size of the screen. |
Clipboard | getSystemClipboard() Gets the singleton instance of the system Clipboard which interfaces with clipboard facilities provided by the native platform. |
EventQueue | getSystemEventQueue() Get the application's or applet's EventQueue instance. |
boolean | isDynamicLayoutActive() Returns whether dynamic layout of Containers on resize is currently enabled on the underlying operating system and/or window manager. |
boolean | isFrameStateSupported(int state) Returns whether Toolkit supports this state for Frame s. |
boolean | prepareImage(Image image, int width, int height, ImageObserver observer) Prepares an image for rendering. |
void | removeAWTEventListener(AWTEventListener listener) Removes an AWTEventListener from receiving dispatched AWTEvents. |
void | setDynamicLayout(final boolean dynamic) Controls whether the layout of Containers is validated dynamically during resizing, or statically, after resizing is complete. |