I use the following function to allow a search to highlight the text it finds on a document:
function replaceText ( node ) {
searcher = new RegExp ( textString, "gi" );
firsthit = searcher.exec(node.nodeValue)
if ( firsthit ) {
node.parentNode.innerHTML =...
Thanks Mark,
But I'm still confused. How should I set up that BufferedReader? The compiler spits it out when I try it just like that, since in isn't initialized.
Also, where should I put the while loop, since it looks like that's going to be running all the time?
Thanks again for your...
I've got a couple nicely working classes that throw their print with System.out.println. My question is, is there a way to redirect the System.out.println so that these lines print to a JTextArea?
I basically want my swing front-end to print out what's going on in the background. Is this...
I have an application on which I have successfully displayed HTML hyperlinks. My question is, now that I have that, is there a way to tell the hyperlinks to display the documents in another window?
I have a separate HTML page set up, and what I'd really like to have happen is to get the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.