Write a program that that displays a dialog box

Assignment Help JAVA Programming
Reference no: EM131037521

Basic Requirements

Write a program that that displays a dialog box show a message and a randomly chosen color.

This random color is to be used as the background color of a JFrame window which should appear after "OK" is selected. The window should ask your name and thank you for playing once "Enter" is pressed.

See sample output below.

LiFiUnit7Ch17.java

-Utilize showMessageDialog to output the message shown in the sample at the bottom. A random color should be output with each run

-Upon clicking OK

-Create a JFrame window

o Set the background and label text color as shown in sample below
o Include a label asking to enter name (see sample)
o Include a textfield to get input for name (see sample)
o Upon hitting "Enter" on the keyboard, output thank you message to include the name entered as per sample at bottom

-Use an inner class for the listener

-Mimic the same session precisely. Pay attention to colors of the window and label.

Reference no: EM131037521

Questions Cloud

Find the domain of the following rational function : Find the domain of the following rational function. Write it in the form p(x)/q(x) for polynomial functions  p and  q  and simplify: f (x) = 1 - {3 / (x + 1).
Human resource management provide to toyota : What types of inputs would you expect to see Human Resource Management provide to Toyota and the leadership of Toyota, as it makes its way forward and tries to regain its focus?
What would be the limitations of linear programming : What insights into rational decision making approach can you draw from this video - what would be the limitations of linear programming?
What should be the standard deviation to get six sigma level : Company XYZ is evaluating whether it is meeting the six sigma requirement or not. The company promises its customer to deliver the product in 20 to 75 hours. Actual shipment data has a mean of 50 hours and standard deviation of 5 hours. Is the compan..
Write a program that that displays a dialog box : Write a program that that displays a dialog box show a message and a randomly chosen color. This random color is to be used as the background color of a JFrame window which should appear after "OK" is selected
Analyze each partnership separately : Collaborative agreements with foreign companies in the form of strategic alliances or joint ventures are widely used as a means of entering foreign markets. They are also used as a means of acquiring resources and capabilities by learning from foreig..
What are the policy arguments in favor of both parties : Should the court grant the request? If so, what might it encourage Paine to do? Would all of the debts be discharged? Does Paine have other options if the Chapter 7 petition is dismissed?
What are your views about abortion : What are your views about abortion? Respond to at least three or more of the main aspects of the abortion issue: prolife, prochoice, Roe vs. Wade; late term abortion, rights of women over their bodies, adoption options, bombing of abortion clinics, a..
Calculate the expected return of optimal risky portfolio : Assessment 2 aims to provide students with an opportunity to analyse various investment alternatives based on the respective risk and return so as to choose the most appropriate investment opportunity. Calculate the expected return and standard devia..

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