COMP274 Lab3 – Version1 – Guaranteed 100% score

Lab Price = $12
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart


Problem Statement

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!

COMP274_Lab3_v1_Prog1
COMP274_Lab3_v1_Prog1

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!”);

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

COMP274_Lab3_v1_Prog2
COMP274_Lab3_v1_Prog2

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!
3. The buttons should have 10 pixels horizontal spacing and 5 pixels vertical spacing.
4. For the layout of the JFrame, use FlowLayout( FlowLayout.CENTER, 10, 5).
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. 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.

Relevant Material
Screenshots
COMP274_Lab3_v1_Prog1
COMP274_Lab3_v1_Prog1

COMP274_Lab3_v1_Prog2
COMP274_Lab3_v1_Prog2
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at [email protected].
* As soon as the payment is received, download link of the solution will automatically be sent to the address used in selected payment method.
* Please check your junk mails as the download link email might go there and please be patient for the download link email. Sometimes, due to server congestion, you may receive download link with a delay.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at [email protected] and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.
* In case of any query, please donot hesitate to contact us at [email protected].
* MOST IMPORTANT Please use the tutorials as a guide and they need NOT to be used for any submission. Just take help from the material.
******************************************** Good Luck ***************************************************
Payment Details

 

Lab Price = $12
Please feel free to send us your queries at: [email protected]
Payment Methods

Add to Cart

Buy Now

View Cart

Privacy Policy
We take your privacy seriously and will take all measures to protect your personal information.
Any personal information received will only be used to fill your order. We will not sell or redistribute your information to anyone.
Refund Policy
Incase you face any issues with the tutorial, please free to contact us on [email protected]
We will try our best to resolve the issue and if still persists we can discuss for a refund in case its required.


Leave a Reply