Homework 4: Web browser, part 1
Design and implement a graphical user interface for a simple web browser.
It will need to have the following features:
- An area in which web content can be rendered
- Do not use
JTextArea, JTextPane,
or JEditorPane for this
- Your best bet will be to customize a
JPanel
- Additional areas in which:
- A URL can be entered
- Search terms can be entered
- A summary of all hyperlinks on the current page will be displayed
- "Forward", "Back", "Stop", "Reload", and "Home" buttons
Once your GUI is complete, do the following:
- Display the HTML source for a URL in the content area
- Design your program so that your communication class is
completely independent of your GUI implementation
- Use a thread for the network communication; this way, the GUI should
still be responsive even if a network communication is underway.
- Implement the stop button to halt a network communication
- Using regular expressions, validate every URL entered in the URL bar
For Wednesday, October 14
- Submit your program using Sauron
- This assignment will include neither a code review nor a revision