Coders Packet

Scorecard Using Java GUI

By Devang Pathak

This project helps in managing scorecards between two teams, designed using Java GUI.

This project includes the following Component:

JLabel - The object of JLabel class is a component for placing text in a container.

JButton - The JButton class is used to create a labeled button that has platform-independent implementation.

The JLabel has the name of the teams with their individual score displayed under them in a new JLabel. The score is simply stored in a variable for each team and by simply using the "++" operator it is incremented whenever the user clicks on the button for the respective teams. If the user wants to reset the scores he/she can simply click the reset button which will reset the scores of the individual teams back to zero by simply changing the Jlabel text to "0" and changing the values of the variable also to 0.

Kindly allude to the screen captures for a superior view.

Screen captures:

Download Complete Code


No comments yet