Write a java application to display the given gui

Assignment Help JAVA Programming
Reference no: EM131591870

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

- The size of the calculator is 250 x 250 pixels.
- 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.
- The buttons should have at least 5 pixels of space between them.
- The text on the buttons should be SanSerif size 16 and be bold.
- 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.
- 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!");

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

This program has the following requirements:

- The textfield should accommodate 3 characters.
- 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!
- The buttons should have 10 pixels horizontal spacing and 5 pixels vertical spacing.
- For the layout of the JFrame, use FlowLayout( FlowLayout.CENTER, 10, 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.
- Do not use inheritance for this program. Use a JFrame member variable as the main window object for this program.

Reference no: EM131591870

Questions Cloud

Prepare aamodt entries to record the returns : Aamodt Music sold CDs to retailers and recorded sales revenue of $700,000. During 2014, retailers returned CDs to Aamodt and were granted credit of $78,000.
Information between consumers and firms or organizations : For each element, explain the flow of information between consumers and firms or organizations.
Recognize the many leadership theories : Leaders don't always know about, understand, or recognize the many leadership theories that are in operation each day within organizations.
Prepare jansen entry when the cash is received : Jansen Corporation shipped $20,000 of merchandise on consignment to Gooch Company. Jansen paid freight costs of $2,000. Gooch Company paid $500.
Write a java application to display the given gui : Write a Java application to display the given GUI. At this point you are only implementing the display - se a JFrame member variable as the main window
How much income telephone sellers should recognize : Telephone Sellers Inc. sells prepaid telephone cards to customers. Telephone Sellers then pays the telecommunications company, TeleExpress.
Why companies will make a product in-house : Give four reasons why companies will make a product in-house and why they will outsource.
When does the ash projectile return to the ground : When does the ash projectile reach the its maximum height? t=? What is its maximum height? When does the ash projectile return to the ground?
Why is it hard to determine relationships boundaries : As a supervisory is it important to build relationships with your workers. What are the appropriate boundaries. Is it hard to determine these boundaries

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd