Use a jframe or japplet as the primary interface

Assignment Help Basic Computer Science
Reference no: EM13888696

Using JAVA

Your project is to build a simple GUI that enables the user to create and view ASCII animations. Requirements:

  • Use a JFrame or JApplet as the primary interface
  • Extend whatever Swing elements you need to create the animation
  • Use at least one interface to handle events
  • Incorporate a custom panel to accept the animations
  • Include buttons or a menu interface to allow moving between frames, saving and loading
  • User should be able to edit any frame
  • User should be able to navigate between frames
  • There should be some mechanism for saving and loading animations

The asciiCanvas

You're expected to build at least one custom class. I called mine the AsciiCanvas. This class should have the following capabilities:

  • be an extension of JTextArea or something similar
  • include the animation (probably as an array of Strings.)
  • display text in a monospace font
  • have methods for moving back and forth in the animation
  • have methods for saving and loading the animation
  • support animations of at least ten frames

As much of the animation code as possible should belong to the AsciiCanvas. The main program shouldn't actually be saving files or switching frames. The main program should be sending requests to the canvas to do the actual work when possible. Encapsulate!

Please utilize the package feature when building this app. Your program should be placed in a package.

Note that file I/O is disallowed in Applets, so if you want to write this project as an applet, you'll need to use another mechanism (like the param mechanism) to load data in.

Reference no: EM13888696

Questions Cloud

Algorithm to find the minimum vertex cover : How to use hill climbing algorithm to find the minimum vertex cover for an undirected graph? Any idea about the algorithm and implementation in C language? Thanks.
Write essay on executive recommendation business philosophy : Write an essay about China Executive Recommendation Business Philosophy.
Proposal weaknesses using track changes : proposal weaknesses using track changes.
Triggers to staffing levels in an organization : As a forecaster, what kinds of movement do you see happening in this workforce as a whole? In other words, what will affect staffing - what kinds of people things are going on that you will have to plan for?
Use a jframe or japplet as the primary interface : A simple GUI that enables the user to create and view ASCII animations. Requirements: Use a JFrame or JApplet as the primary interface Extend whatever Swing elements you need to create the animation Use at least one interface to handle events
System building occurs when physical file : A common problem with system building occurs when physical file names are incorporated in system code and the file structure implied in these names differs from that of the target machine. Write a set of programmer's guidelines that helps avoid th..
Ethical differences in the client-participant relationship : Prepare a chart that compares and contrasts narrative and phenomenological designs - Ethical differences in the client-Participant relationship
Describe the impact of racism : Describe the impact of racism
Building a system from its components : Describe the difficulties that may arise when building a system from its components. What particular problems might occur when a system is built on a host computer for some target machine?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Sort the array in the descending order using pointers

Create functions for the following tasks and make sure to pass a pointer to the table (array) as an argument to each of them.

  What is the best defense against social engineering

What is social engineering. What is the best defense against social engineering. What are some examples of physical security measures you can implement to protect your network

  Sort the pianos from high quality to low

a. Sort the pianos from high quality to low. b. Sort the pianos from high quality to low and, within each quality, sort by Building and then by Location within that building.

  Write a program that reads in a length in feet

Include a looop that lets the user repeat this computation for new input values until the user says he or she wants to end the program. There are 0.3048 meters in a foot. 100 centimeters in a meter, and 12 inches in a foot.

  Signed-magnitude representations binary numbers in computers

Why do we require signed-and-magnitude representations of binary numbers in computers? Represent decimal values: -37, -54, and 56 in binary by using signed-and magnitude representation.

  Explain how you can extend the sci capability

Explain how you can extend the SCI capability to RF and Bluetooth communication - Imagine an RFID device connected to SCI0 that sends a 16 character code to the DB-12 board when an item is swiped

  Explain using managerial economics

Explain, using managerial economics, why sports economists believe ticket prices are too LOW. No more than 75 words, please. You can do an excellent job with 40 - 50 words if you are concise.

  Defined a collection of data contained in a single variable

An "array" is defined a collection of data contained in a single variable name. Each element of the array can be reference by a numerical index.

  How many hits does the sequence exhibit

Assume LRU replacement policy, for each sequence, how many hits does the sequence exhibit?

  Privacy and security issues are inherent in data storage

Privacy and security issues are inherent in data storage. Let's consider the question of who owns the data about a particular person: medical, credit, personal, financial, consumer information, etc.?

  Calculate the minimal sum logic for each output

How would I do this problem? When it says 4-bit two's complement numbers, what does it mean?

  What the next state of the machine should be as a function

what the next state of the machine should be as a function of the current state. then produce a combinational circuit using gates and D-flipflops that implements this state machine. label the least and most significant bit.

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