On 15/11/2005 Will Barker wrote:
> Does anyone know of a good such tool or some example programs for the
> aforementioned tools that would help me get my head around the task.

Look at javax.swing.text.html.*

HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument) kit.createDefaultDocument();
StyleSheet styles = doc.getStyleSheet();
styles.LoadRules(new FileInputReader("?:/path/to/some/file.css"),
                  new URL("http://base/url";));

<caveat>Long time no program java. CSS1 only. Swing html editor kit is 
possibly the worst piece of swing, swing being pretty bad in 
itself.</caveat>

HTH
Marcus

-- 
Marcus Williams -- http://www.cad-schroer.co.uk
CAD Schroer UK, 39 Newnham Road, Cambridge, UK
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to