1
Lab 1 Java GUI Make a GUI with the following components a) A JTextField b) 4 JButtons labeled A, B, C, D c) A Jlabel Your GUI should include the event handling required for the following o When the mouse clicks a button the corresponding alphabet should be appended to the Textfield. o The total number of clicks should appear on the Label

Lab 1_Basic GUI

Embed Size (px)

DESCRIPTION

Practice GUI using SWING

Citation preview

Page 1: Lab 1_Basic GUI

Lab 1

Java GUI

Make a GUI with the following componentsa) A JTextFieldb) 4 JButtons labeled A, B, C, Dc) A Jlabel

Your GUI should include the event handling required for the followingo When the mouse clicks a button the corresponding

alphabet should be appended to the Textfield.o The total number of clicks should appear on the Label