Posts

Showing posts with the label Java AWT

Program to create a Popup Menu using Java AWT

Image
This tutorial shows you how to create a simple popup menu in Java. Popup menu is a menu which appears when you right click on mouse. For example, to copy, paste something in computer you right click and it will show the popup menu like:

Program to create a simple Calculator using Java AWT components

Image
This tutorial explains you how to create a simple Calculator using Java AWT components. The output of the program is given below. 

Program to create a simple mini paint application

Image
In this program, we will create a simple mini paint application using Frame class. We have to implement two types of events here: Mouse event and Key event. To use this program you have to use numpad keys on keyboard. The following keys are used for specific purpose: