A simple Selection and Highlighter class for {@link org.xhtmlrenderer.simple.XHTMLPanel}.
The current selection is available as a DOM Range via getSelectionRange. There is also a Swing action to copy the selection contents to the clipboard: {@link org.xhtmlrenderer.swing.SelectionHighlighter.CopyAction}, which should be installed on the SelectionHighlighter
Usage: create the XHTMLPanel, create an instance of this class then call install. See also: /demos/samples/src/SelectionHighlighterTest.java
With thanks to Swing'sDefaultCaret
@author Nick Reddel
|
|