Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

"View Selection Source", in Java

As a group project I am creating an interactive webscraper. We would like to be able to implement the "View Selection Source" option that is availble in firefox in Java.

I am using the JEditorPane to view the website, and want to be able to hightlight the text with the mouse, and select a button which then produces the same output that "View Selection Source" does.

Does anyone know how to do this?

Many thanks

Richard
[457 byte] By [RichWard] at [2007-11-11 7:18:42]