Compile the code and run it

Assignment Help Operating System
Reference no: EM13944702

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class MemoryProg extends JFrame
{
private static final int WIDTH = 350;
private static final int HEIGHT = 200;
private JTextField nameBox;
//**************************************************************************

public MemoryProg()
{
setTitle("Message");
setSize(WIDTH, HEIGHT);
setLayout(new FlowLayout());
setDefaultCloseOperation(EXIT_ON_CLOSE);
createContents();
setVisible(true);
}
//**************************************************************************

public void createContents()
{
JOptionPane.showInputDialog("Enter color number 1:");
nameBox = new JTextField(15);
add (nameBox);

}
//**************************************************************************
public static void main(String[] args)
{
JOptionPane.showMessageDialog(null, "How good is your memory?
n" +
"Try to memorize this color sequence: nn" +
"red white yellow green blue");
new MemoryProg7();

}
//*************************************************************************
}//end MemoryProg

Attachment:- MemoryProg.docx

Reference no: EM13944702

Questions Cloud

Establish accurate time budgets for accounting tasks : Explain why it might be difficult to establish accurate time budgets for accounting tasks.
Rotates with an angular speed : If an object has a moment of inertia 21 kg·m2 and rotates with an angular speed of 110 radians/s, what is its rotational kinetic energy?
Luther is about to add a new fleet of delivery trucks : Luther is about to add a new fleet of delivery trucks. The price of the fleet is $1.5 million. If Luther acquires the new fleet of delivery trucks using a capital lease, Luther's Debt to Equity ratio will be closest to:
Determine the regression equation for the data : Time and cost word processing in the first two columns of table below we repeat our data on time and cost for a sample of 5 word processing jobs. Cost($) Time (hr) y x 125 5 175 7 325 15 425 20 475 22.5
Compile the code and run it : OptionPane.showMessageDialog(null, "How good is your memory?
Why descartes think that philosophize to refute skepticism : Why does Descartes think that to philosophize is to refute skepticism"? The short answer is that Descartes thinks knowledge is possible. Skepticism denies that knowledge is possible.
Design an entity-relationship model of the given problem : You are required to design (using an E-R diagram) an entity-relationship model of the problem, convert the model into a relational model, assess the normal form of each schema and write SQL queries that will answer the following queries.
Describe the five ways to manage conflict : Describe the five ways to manage conflict. Explain your personality type (Myers-Briggs Typology) and then describe what would be the most likely way for you to manage conflict.
Formed when an object like the sun collapses : a neutron star is formed when an object like the sun collapses. Suppose a uniform spherical star of mass M and radius R collapses to a uniform sphere of radius 10^-5 R. If the original star has a rotation rate of 1 rev each 25 days, (like the sun)..

Reviews

Write a Review

Operating System Questions & Answers

  How has e-mail affected the efficiency and effectiveness

What types of information are shared through documents? What types are shared through meetings? What types are shared through informal communications?

  Network crashes are hypothesized

Assume we are using Lamport's hash, and Bob's system crashes before receiving Alice's reply to a message.

  Describe pulse code modulation phase shift modulation

1. describe pulse code modulation phase shift modulation amplitude modulation and frequency modulation. indicate how

  Questiona i explain the following terms in relation to

questiona i explain the following terms in relation to linear programming problems-1 decision variables2 objective

  Fragmented mean in reference to hard drives

What does fragmented mean in reference to hard drives, and what, if anything, should be done to prevent it. Describe the general path data takes in an application from user input to the computer hardware.

  Designing phase of the project management life cycle

Discuss how does the design phase of the project management life cycle differ in content and importance from the other phases?

  Opportunity to improve reputation

Determine what security hole was exploited through criminal hackers to illegally access LexisNexis network, what method was employed. How did they turn a bad situatin into an opportunity to improve its reputation?

  Calculate cocomo effort

Calculate COCOMO effort, TDEV, average sta?ng, and productivity for an organic project that is estimated to be 39,800 lines of code.11. Calculate the unadjusted function points for the problem description of Problem 2.

  Is the process before and after the swap are the same

Is the Process before and after the swap are the same? Give reason. What do you mean by u-area (user area) or u-block?

  Vliw processor

VLIW processor - assembler

  Assignment on functional modeling

Create a use-case diagram to include at least three (3) actors for the system described in this case through the use of graphical tools in Microsoft Word or Visio, or an open source alternative such as Dia. Note: The graphically depicted solution ..

  Use m8c assembler directives to allocate

Use M8C assembler directives to allocate the constants in ROM. Assume that they are all in the "lit" area.

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