The programs are as follows:
P1:
MP3 Patrol -- A Java console-based web robot that
locates valid links to mp3 files, for enforcement
purposes only. (Please do not use this program
to download mp3 files.)
This assignment requires you to create a text-based
menu-driven program that will read in an HTML
document from an arbitrary URL or file, parse the
HTML to remove tags, and identify hypertext links to
other documents. When links to mp3 files are detected,
a record of the URL is kept, and uploaded to a
server via RMI. The URLs can also be serialzed
to disk.
Files include:
P1Info.java
-- Instructional information in a convenient Java
source file
MP3.java
-- A wrapper class for holding URLs
Please do not modify this file.
P1Constants.java
-- an required interface for p1.
rmi.txt
-- a helpful 'lab' style description of the RMI
design process.
P2:
"Jinx Again" -- Creating a
graphical version of your text-based MP3 Patrol
program.
This will involve the use of
lightweights and jfc classes.
Additional information from:
P2Info.java
P3:
"Using Java to Teach Java" -- an applet or
application that teaches Java and programming concepts
to CS1502 students. Potential topics include:
animated sorting algorithms, graph searching,
utilities that CS1502 students will find useful (e.g.,
debugging), applets that illustrate the functioning of
applets, layout managers, event listeners,
etc.
Hack alert: for this assignment do
whatever it takes to get it working. Commenting
is extra credit.
If you wish to work on lab development for P3, you
might consult some of the labs and programs given
to CS1502 students.
Attached you will find a collection of all
labs and programs given out during Spring 1999.
To assist
development, a triple-buffered, clipping area,
lightweight component/lightweight container graphics
engine will be handed out. The engine will let
you animate objects easily, without flicker, allowing
you to concentrate on UI details, etc.
Use
of this engine is of course optional.
The engine is provided in the
form of a simple shuffle-board game (you may reverse
engineer the game to find what is useful in the
engine.
Simple.java
-- a simple applet
Dragster.java
-- an event handler for lightweight components
LightComponent.java
-- a class for lightweight components
LightContainer.java
-- a class for lightweight containers
MyPanel.java -
- demonstrates creation of light
containers, components
OffBuffer.java
-- part of the light containers work area
test.gif
-- a picture of Sox, the Whitehouse cat (currently
under grand jury subpoena),
used by the MyPanel class
All of the above--
p3help.zip