0% found this document useful (0 votes)
98 views1 page

Lab 1 - Basic GUI

This document provides instructions for creating a Java GUI application with a JTextField, 4 JButtons labeled A-D, and a JLabel. The application should append the letter of the clicked button to the text field and display the total number of clicks on the label by handling mouse click events for each button.

Uploaded by

Akhil Balaji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views1 page

Lab 1 - Basic GUI

This document provides instructions for creating a Java GUI application with a JTextField, 4 JButtons labeled A-D, and a JLabel. The application should append the letter of the clicked button to the text field and display the total number of clicks on the label by handling mouse click events for each button.

Uploaded by

Akhil Balaji
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like