Search This Blog

Monday, 12 March 2018

Applet code for displaying background color by using buttons

This Applet consists of 3 buttons named Red, Green, Blue. An event is created on button and respective background colours are set.

For Command Prompt: Before compilation set path for your file is saved.

Applet Simple program by using button and label

This Applet consists of 3 labels and 4 buttons named Add, Sub, Mul, Divide. Two labels are taken as input i.e 250 and 55. An event is created on button and result is displayed as a label.

For Command Prompt: Before compilation set path for your file is saved.