Discount Get COMP 274 ALL WEEKS Solution ONLY $98.20 $130.93
COMP 274 Week 1 - Programming Assignment [$9.99]
COMP 274 Week 2 - Inheritance and Polymorphism [$15.99]
COMP 274 Week 3 - Programming Assignment [$16.99]
COMP 274 Week 4 - Fun with Colors [$16.99]
COMP 274 Week 5 - Paddle Ball Game [$19.99]
COMP 274 Week 6 - The Calendar Manager Program [$24.99]
COMP 274 Week 7 - JavaDoc and Jar file [$25.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
COMP274 COMP 274 COMP/274 Week 3 Lab 3 iLab 3 - Home Work Programming Assignment
    COMP274 COMP 274 COMP/274 Week 3 Lab 3 iLab 3 - Home Work Programming Assignment COMP274 COMP 274 COMP/274 Week 3 Lab 3 iLab 3 - Home Work Programming Assignment

COMP274 COMP 274 COMP/274 Week 3 Lab 3 iLab 3 - Home Work Programming Assignment

$16.99

COMP-274 Week 3 Programming Assignment

Create Java programs for the following two problems.

  1. Write a Java application to display the following GUI. At this point you are only implementing the display. We are not ready to make the calculator actually do any calculations!

This program has the following requirements:

  1. The size of the calculator is 250 x 250 pixels.
  2. The background and foreground color of the calculator buttons must alternate in a checker board pattern as shown above. You can choose any pair of colors for your foreground and background colors.
  3. The buttons should have at least 5 pixels of space between them.
  4. The text on the buttons should be SanSerif size 16 and be bold.
  5. Your application should be implemented in a single class. The main method of the class does nothing more than create an object of the class. The constructor of the class creates and displays the GUI. The constructor may call other methods of the class if needed.
  6. The class must inherit from JFrame as the following demonstrates:

public myGUI extends JFrame { … }

The extends keyword specifies inheritance. Inside the class you can directly access methods of the JFrame class without specifying an object due to inheritance. So when you want to add something to the frame, simply say

add(someComponent);

You can specify the title of the window in your constructor by simply adding the following line as the first thing in your constructor.

super(“Title of your window!”);

  1. Write a Java application to display the following GUI. At this point you are only implementing the display.

This program has the following requirements:

  1. The textfield should accommodate 3 characters.
  2. The V1 and V2 labels should be next to the corresponding textfields.

Hint: Put each label and its adjacent text field into a panel, then put both panels into another panel!

  1. The buttons should have 10 pixels horizontal spacing and 5 pixels vertical spacing.
  2. For the layout of the JFrame, use FlowLayout( FlowLayout.CENTER, 10, 5).
  3. Your application should be implemented in a single class. The main method of the class does nothing more than create an object of the class. The constructor of the class creates and displays the GUI. The constructor may call other methods of the class if needed.
  4. Do not use inheritance for this program. Use a JFrame member variable as the main window object for this program.

Take screen shots of the output of programs 1 & 2. Paste the screen shots and your source code for your programs into a Word document.

Please place things in the following order:

Screen shot of problem 1.  Code for probem 1.  Screen shot of problem 2.  Code for problem 2.

Week 3 Programming Assignment

Create Java programs for the following two problems.

  1. Write a Java application to display the following GUI. At this point you are only implementing the display. We are not ready to make the calculator actually do any calculations!

This program has the following requirements:

  1. The size of the calculator is 250 x 250 pixels.
  2. The background and foreground color of the calculator buttons must alternate in a checker board pattern as shown above. You can choose any pair of colors for your foreground and background colors.
  3. The buttons should have at least 5 pixels of space between them.
  4. The text on the buttons should be SanSerif size 16 and be bold.
  5. Your application should be implemented in a single class. The main method of the class does nothing more than create an object of the class. The constructor of the class creates and displays the GUI. The constructor may call other methods of the class if needed.
  6. The class must inherit from JFrame as the following demonstrates:

public myGUI extends JFrame { … }

The extends keyword specifies inheritance. Inside the class you can directly access methods of the JFrame class without specifying an object due to inheritance. So when you want to add something to the frame, simply say

add(someComponent);

You can specify the title of the window in your constructor by simply adding the following line as the first thing in your constructor.

super(“Title of your window!”);

  1. Write a Java application to display the following GUI. At this point you are only implementing the display.

This program has the following requirements:

  1. The textfield should accommodate 3 characters.
  2. The X and Y labels should be next to the corresponding textfields.

Hint: Put each label and its adjacent text field into a panel, then put both panels into another panel!

  1. The buttons should have 10 pixels horizontal spacing and 5 pixels vertical spacing.
  2. For the layout of the JFrame, use FlowLayout( FlowLayout.CENTER, 10, 5).
  3. Your application should be implemented in a single class. The main method of the class does nothing more than create an object of the class. The constructor of the class creates and displays the GUI. The constructor may call other methods of the class if needed.
  4. Do not use inheritance for this program. Use a JFrame member variable as the main window object for this program.

Take screen shots of the output of programs 1 & 2. Paste the screen shots and your source code for your programs into a Word document.

Please place things in the following order:

Screen shot of problem 1.  Code for probem 1.  Screen shot of problem 2.  Code for problem 2.

My tutorial contains Java Programs - Ecipse Projects and Documents

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B