Derek Wood
E. Parrish
CIS 20 W
28 May 2003
Sampler Report: Basic Web Browser
Of all the many possibilities to choose from, the web browser seemed like something worth trying for.� It�s very basic and won�t load some advanced pages, but it�s a start and it loads basic pages just fine.� It fulfills most if not all the requirements made by the teacher including bonus code to show advanced programming skills.
There are multiple classes used in this program, but they are mostly Action Listener classes which were difficult to understand, but easy to accomplish.� While browsing the Action Listener classes I found a way to put the Action Listener class connected to the actual definition of the object.
There are several uses of exceptions in the program, mostly IOExceptions for the reading/writing of files.� There is a �backButtonListener,� which implements ActionListener and there is a �LinkFollower,� which implements a HyperlinkListener and there is exception catching and throwing for all of these.
There is both file reading and writing.� When the program loads it looks for a file called �browser.txt� and will load the first line of the text as the link.� The second is when the browser it closed.� It calls a method: lastCall and takes the array of stored data from your browsing and prints it to a file called �history.txt.�� The output is formatted for easy viewing.
The graphical user interface is the best feature about this program.� It uses all the required objects and more.� There is JButtons, JPanels, JEditorPane, JFrame, and JToolBar.� The JToolBar is very impressive because it can separate from the actual program and move around for the user�s convenience.
This program is
basically dependant on an internet connection, therefore fulfilling the extra-credit
requirement of Networking.� It also runs
as an application.� This program was very
fun to write and to learn the other quality features in java and hopefully
other users will agree.