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

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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