Selected html text with HTMLEditorKit
I am using the HTMLEditorKit with the JEditorPane and have both working.
I can do simple things like inserting predefined strings at the current location (using InsertHTMLTextAction).
I can get the selected text with JEditorPane2.getSelectedText().
What I can not seem to do at the moment is get the selected html text.
I want to get the selected text as "Example <b>BOLD</b> text" instead of getting "Example BOLD text".
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL