Program demonstrates how to draw text using GUI.

Source Code:

Output:

Program demonstrates how to display a solid rectangle using fillRect() method of Graphics class.

Source Code:

Output:

Program demonstrates how to display a pie chart using a frame.

Source Code:

Output:

Program demonstrates how to create a transparent cursor by using createCustomCursor() method.

Source Code:

Output:

Program demonstrates how to display a message in a new frame.

Source Code:

Output: