CSCI 135 Lab 5 Program 1 Solved

30.00 $

Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: . zip solution files instantly, after Payment


Rate this product
  1. Create a Driver class that creates a Frame using the following outline (feel free to rename the class):
  2.  Create a panel using this outline:
  3.  Change the background color of the panel to a color found in the room where you are.
  4.  Add a graphic showing your favorite appetizer.
  5.  Create another panel.
  6. Change the background to a complimentary color to your favorite color.
  7.  Add some text with at least three things you like to do with friends (in different labels) to this panel.
  8.  Add this panel to your original panel.
  9. Create another panel.
  10.  Change the background of this panel to a different color than your first two panels.
  11.  Add some text to this panel describing a favorite memory.
  12.  Add this panel to your original panel..

Extra Credit:

Use the Border Layout to put your panels into different areas of the screen.

Program 2:

Basketball season is among us! Let’s create a quick graphical basketball application.

1. Create another frame.

2. Next, create a JPanel, and inside of it, you are going to display some basketball information (again feel free to change the class name).

3. Set the height of the panel to 400.

4. Set the width of the panel to 550.

5. Your panel should first display an image of something related to basketball.

6. You should be able to add a location.

7. You should be able to add the player’s name.

8. You should be able to set the current ticket price. Use a textbox for this.

9. Once you set these items, click on the button and your program should display the ticket price in dollars and Canadian dollars along with the location.

10. When the button is pushed, all the text fields should be disabled as well. Extra credit: Use a layout manager to make all your information show up an organized way. Have the image change whenever the button is clicked to random images.