Download HelloWeb.java to use as a starting point. Modify this applet to display a business card logo. The logo should contain some circles, lines, or rectangles, plus a business name (or just your name) as text.
You are expected to use the Java
API
documentation (the
JavaDocs
)
for the Graphics class in the java.awt
package, to find the methods
you use to draw shapes and text.
(Hint:
Look for method names that start with
or
draw
.)
fill
View a sample logo applet to see an
example of what can be done.
Your logo need not look like the sample.
Try to be creative!
You will not be graded on the artistic merits of your logo,
just that you were able to correctly create, edit, compile, and
display a Java applet that included at least a few of the
methods from the java.awt.Graphics to draw stuff,
enough to show you made an effort to use the API
(or JavaDoc) documentation.
Use HelloWeb.java and MinHTML.htm
(from the HelloWeb example)
to start with, just change the names as appropriate.
Use g.setColor() to change the color of the subsequent
text and shapes.
See the paint() method of
GUIGreet.java for examples
of drawing lines, rectangles, and setting colors.
GUIGreet is not an applet, but you can use the
Java statements in the paint method in your applet.
You may bring a flash drive with your working logo applet
(HTML and applet .class files)
to class.
We will take some time at the start of class to show them.
(This will earn you extra credit.)
Java Project 1 Submissionor
Java Logo Project Submission, so I can tell which emails are submitted projects.
Java Project 1 Questionsso I can tell which emails are questions about the project.
Note: If
you use Microsoft Outlook Express or a similar
email program, please be aware that this program has a feature
that automatically converts slash-slash (
)
comments in your email to //
.
Make sure your java source is correct before you send the email!
If possible, use the FILE://text
and not the HTML
mode of your email program.
Late projects generally will not be accepted. In the event a student submits more than one project, I will ignore all but the last one received up to the deadline. Projects submitted after the deadline will not count toward your grade without the prior express approval of your instructor.
You must turn in an Applet, not a stand-alone program.
You must meet all the requirements from the description above. If you include any creative extras, be sure your program still displays a logo as described above. Creative extras are extras and you are not free to modify the project requirements.
A non-working project can score quite well (so don't be afraid to turn one in). Also a fully working project may not score 100%. The criteria for grading are as follows:
Projects are graded according to their design (25%), how well they compile and run (20%), how well they meets the requirements specifications (20%), the coding style (15%), the amount (and quality) of comments(10%), and creativity in extending the project usefully, or an innovative design that uses the features taught in class well, etc. (10%).
You must work alone on your project, however
you can ask your instructor for help anytime.
Do not wait until the last minute
to begin work on your
projects!
Please review Submitting Assignments and Project Grading Criteria from your class syllabus for further details.