Web Client Programming with Java
Web Client Programming with Java
What is Web Client Programming with Java?
Parsing HTML is Hard
Swing Supports HTML
HTML on Components
Avoid Uppercase HTML
Including HTML in a JLabel
The Actual Applet
What's Supported?
JEditorPane
JEditorPane Constructors
JEditorPane setPage() and setText()
Using a JEditorPane to display a web page
JEditorPane displaying a Web Page
What JEditorPane Doesn't Do
The second constructor
The third constructor
The fourth constructor
Constructing HTML User Interfaces on the Fly
Constructing HTML User Interfaces on the Fly, an Example
Handling Hyperlinks
Three kinds of link event
HyperlinkListener Example
A very simple web browser
Reading HTML Directly
An example of reading HTML directly
Parsing HTML
javax.swing.text.html
HTMLEditorKit.Parser
HTMLEditorKit.ParserCallback
Getting an Instance of HTMLEditorKit.ParserCallback
A Backdoor approach to an HTML Parser
The parse() method of HTMLEditorKit.Parser
HTMLEditorKit.ParserCallback
Tag Stripping Example
Tag Stripping Example, Part II
Details
Retaining Line Breaks
HTML.Tag
LineBreakingTagStripper
Identifying Tags
An Outliner Example
Outliner Example Output
Attributes
AttributeSet Example
The 80 predefined attributes are:
MutableAttributeSet
PageSaver
To Learn More
Questions?
Entire Presentation as Single File
Start
|
Cafe au Lait
Copyright 2000 Elliotte Rusty Harold
Last Modified November 8, 2000