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

  What is the upper bound of an array in c++

what is the upper bound of an array in C++

  Draw a hierarchy chart and plan the logic

Draw a hierarchy chart and plan the logic for a program for the sales manager of The Potato Furniture Company.The manager needs a program to dertemine the profit on any item sold,input includes the wholesale price and retail price for an item ..

  Create a stored procedure

The procedure must insert the next of kin information into the Next of kin table by looking up the student id from the Student table. (will you need a schema? how do I send it to you?) can you use just the tables for the student and next of kin?

  Create a hierarchy

You have just completed 10 weeks of a software engineering course. Imagine you have been asked to create a one-day training course highlighting the important elements of what you have just learned in the past 10 weeks.

  How many members of the group like all parties

while two dislike the Liberals, NDP, and Green Party; three dislike the Conservatives, New Democrats, and Greens; and four dislike the Conservatives, Liberals, and Greens. Two people dislike all four parties. How many members of the group like all..

  You are the lead forensic technician within a medium size

create a 15-20 slide powerpoint presentation addressing the following scenarioyou are the lead forensic technician

  Write one function that reads the input using alias paramete

Write one function that reads the input using alias parameters (reference parameters).Write a second function that calculates the pay amount. If the salesperson owes money, thereturn amount from the function is a negative number.

  Write a programme that force the player-controlled class

write a programme that Force the player-controlled class Dog to fall asleep when its energy reaches 0, and once it wakes up, set its energy to 100.

  Data-hiding techniques

1. Explain how a user could utilize ADS to hide data and explain other destructive uses which exist for ADS.2. Determine how rootkits can be used as an alternative for data hiding and explicate why they can be used for this purpose. 3. Describe the p..

  What types of threats does the tool mitigate?

At work, keeping your data safe and your computers up and running is your primary concern. What can employees do to protect against intrusion and attacks?

  Determining contents of memory of specified address

Find the contents of memory from address 0x1800 up to, but not including, 0x1809, after this code is executed.

  What does it mean to take a systems view of a project

As an IT project manager, you may take a systems view of a project.

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