Posts

Showing posts from November, 2017

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:

Program to demonstrate the Mouse events using Applet

Image
In this program, we have to implement Mouse events. An event which indicates that a mouse action is occurred in a component. This event is used both for mouse events (enter, click, press, release, exit) and mouse motion events (moves, drags).