Monday, February 20, 2012

Trying to Implement "Caret Browsing” Using JavaFX 2


I'm trying to write an application using JavaFX 2.0 that includes a web browser control that allows a user to navigate through the text and images on a HTML page using only the keyboard -- basically like "caret browsing" in Internet Explorer.



The goal is to be able to select bits of text or images and copy them to a variable for further manipulation without using a mouse.



I took a look at the HTMLEditor control here: http://docs.oracle.com/javafx/2.0/ui_controls/editor.htm#CHDBEGDD but I don't need any editing capability cluttering up the UI, and the documentation says:




The formatting toolbars are provided in the implementation of the component. You cannot toggle their visibility.




WebView seems like a logical choice ( http://docs.oracle.com/javafx/2.0/webview/jfxpub-webview.htm ), but I'm not sure how to get a cursor onto the page.



Any advice would be appreciated.

No comments:

Post a Comment