In this exercise, you will create a GUI for a
Using a text editor, create the
1. Declare the ChatClient class.
2. Add four atrributes to the
3.
Add a public constructor that initializes each of the four GUI component attributes: The text area sould be 10 rows tall and 50 columns wide, the text field should be 50 columns wide, the send button should have word Send in the display, and the quit button should display a similar label.4.
5. Create teh main method. This method will instantiate a new ChatClient object and then call the launchFrame method.
On the command line, use the
On the command line, use the java command to run the ChatClient program. You should see the GUI shown in Figure 10 - 1 on page Lab 10 - 2. If your GUI does not look exactly like the figure, then edit the code to tweak the design to match this figure.