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

  What is probability that pre-fetching is on right track

Suppose that a computer pre-fetches 20 instructions in advance. However, on the average, four of these are conditional branches, each with a probability of 90% of being predicted correctly.

  Television clips in a powerpoint presentation

Computers and television would work is when you tape television demonstrate that can be used to give flavor to PowerPoint Presentations.

  Selecting correct information system for trading futures

Discuss some of the many considerations in choosing the correct information system to use for trading futures and stocks?

  Which wireless technologies will enable you to do this

Given that a sattelite signal travels at the speed of light, exactly how long does it take for a signal to go from the earth to a sattelite in geosynchronous orbit and back to earth? show the calculations

  How x25 kernel provide for user-level thread implementation

Detail the considerations that are involved in selecting a target operating system to serve as a potential host for the design and implementation of a virtual machine monitor that would support a specific guest operating system.

  Examination of evidence on original media

The "forensically sound" method is to never conduct any examination on original media. There are practical and legal reasons for not performing examination on suspect's computer,

  Construct resource allocation graph with processers

Construct a resource allocation graph with the following processers and resources, the system consists of four processers P1, P2, P3, and P4 and five resources R1, R2, R3, R4, and R5.

  Which declaration of x is the correct one for a reference

Assuming static scoping, which declaration of X is the correct one for a reference to X in the following

  Explain unix as a key component for forensic examiners

Write a paper, examining computer forensic issues as they are related to Microsoft Windows and Macintosh environments and explain UNIX as a key component for forensic examiners;

  Describe a client - server protocol

Identify and describe a client/server protocol used in everyday life and identify and describe three concerns dealing with Internet security and privacy?

  What is a thread

What types of problems lend themselves to Processes? Is one better than the other? Why or Why Not.

  Explain time which you have used quality-of-service in your

you were hired as a network engineer for a small firm that had just recently implemented a voice-over internet protocol

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