Question: 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

 CS 1113 LAB #11: GUI Programming with Swing Dr. Cline Javahas a built-in library called "Swing" that allows the programmer to createprograms with a graphical user interface. Using Swing, you can easily createan 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 througha PuTTY connection. the GUI elements must be instantiated on the localmachine. In this lab, you will build a simple reaction timer applicationthat has you click on buttons a fast as you can. Youwill build the program in stages, taking a screen shot after someof the phases. You will not have to write any code yourselffor this lab. Instead, you start with a base program and adddifferent pieces of code until the reaction timer is complete. As youcopy each piece of code, read over it and try to understandwhat it is doing. Also read the descriptions of the different codesegments. Stage 1: The base program. To start the lab, copy theprogram below, and change the comment at the top and change thename and section string in the "main" method to be your nameand section number. As always, you can use the copy included withthe lab code rather than copying directly from this pdf document if

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!