Javatpoint Logo
Javatpoint Logo

Java AWT Toolkit

Toolkit class is the abstract superclass of every implementation in the Abstract Window Toolkit. Subclasses of Toolkit are used to bind various components. It inherits Object class.

AWT Toolkit class declaration

Java AWT Toolkit Example

Output:

Screen resolution = 96
Screen width = 1366
Screen height = 768

Java AWT Toolkit Example: beep()

Output:

java awt toolkit example 1

Java AWT Toolkit Example: Change TitleBar Icon

Output:

java awt toolkit example 2



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA