Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS 1113 LAB #11: GUI Programming with Swing Dr. Cline Java has a built-in library called Swing that allows the programmer to create programs with

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

CS 1113 LAB #11: GUI Programming with Swing Dr. Cline Java has a built-in library called "Swing" that allows the programmer to create programs with a graphical user interface. Using Swing, you can easily create an application that has windows, buttons, text fields, menus, and so forth. In this lab, you will create a simple GUI application using Swing. Note that you will not be able to run this program through a PuTTY connection. the GUI elements must be instantiated on the local machine. In this lab, you will build a simple reaction timer application that has you click on buttons a fast as you can. You will build the program in stages, taking a screen shot after some of the phases. You will not have to write any code yourself for this lab. Instead, you start with a base program and add different pieces of code until the reaction timer is complete. As you copy each piece of code, read over it and try to understand what it is doing. Also read the descriptions of the different code segments. Stage 1: The base program. To start the lab, copy the program below, and change the comment at the top and change the name and section string in the "main" method to be your name and section number. As always, you can use the copy included with the lab code rather than copying directly from this pdf document if you wish. Compile it on your machine and run it. Note that you cannot do this through a remote connection such as PuTTY You must run the program on a local machine. CS 1113 LAB #11: GUI Programming with Swing Dr. Cline Java has a built-in library called "Swing" that allows the programmer to create programs with a graphical user interface. Using Swing, you can easily create an application that has windows, buttons, text fields, menus, and so forth. In this lab, you will create a simple GUI application using Swing. Note that you will not be able to run this program through a PuTTY connection. the GUI elements must be instantiated on the local machine. In this lab, you will build a simple reaction timer application that has you click on buttons a fast as you can. You will build the program in stages, taking a screen shot after some of the phases. You will not have to write any code yourself for this lab. Instead, you start with a base program and add different pieces of code until the reaction timer is complete. As you copy each piece of code, read over it and try to understand what it is doing. Also read the descriptions of the different code segments. Stage 1: The base program. To start the lab, copy the program below, and change the comment at the top and change the name and section string in the "main" method to be your name and section number. As always, you can use the copy included with the lab code rather than copying directly from this pdf document if you wish. Compile it on your machine and run it. Note that you cannot do this through a remote connection such as PuTTY You must run the program on a local machine

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago