Lab 9: A web browser
In this lab and project, you will write a web-browser.
It won't be full-featured, but it will have an interesting feature:
It will display text in two panes (like a book), controlled by a
single scroll bar.
There are several big steps in this project, and you should
work on these one at a time and confirm they work before you go on.
- Reading a specified string from a textfield by which the user indicates
a URL.
- Grabbing that webpage from the Internet.
- Stripping out the markup from the text of that page to get only
the text.
- Displaying that text in two panes.
- Setting up the scroll bar to be able to adjust what is being shown
in the panes.
- Reading the hyperlinks from the text and putting them
as options in a dropdown box.
- Setting up the dropdown box so that when the user selects
something from it, the corresponding webpage is loaded.
1. Setup
Make a new directory for this lab and copy the
the files from the course directory for this lab.
cp /Public/cs245/lab9/* .
Thomas VanDrunen
Last modified: Thu Oct 18 11:49:05 CDT 2007