Skip to main content

Find in page

2 replies [Last post]
Anonymous

Hi, I hope you can help me.

I'd like to implement a "Find in page" function in JavaHelp, which brings
up a dialog where a user can enter a text string and then it will find
that text string in the currently loaded HTML page.

Can you advise how easy this is to implement and how to go about it? I
have a lot of expereince in Java so I just need to know where to start.

This is really needed as the search feature provided in JavaHelp is no
good for finding a text string as it just says there are, eg 4 matches and
highlights them, but does not take you to them in the HTML page. It the
HTMl page is 20 pages long, say, it's hard to find the matches!

Regards,

Bill.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Humm...Well that would require the knowledge of the JEditorPane in the
JHContentViewer. Basically that means it would work as long as someone
doesn't use some other type of editor like a native editor.

You might look at the secondary windows code or popups they might give
you some additonal details on how to implement.

Binky

Bill Batchelor wrote:
> Hi, I hope you can help me.
>
> I'd like to implement a "Find in page" function in JavaHelp, which brings
> up a dialog where a user can enter a text string and then it will find
> that text string in the currently loaded HTML page.
>
> Can you advise how easy this is to implement and how to go about it? I
> have a lot of expereince in Java so I just need to know where to start.
>
> This is really needed as the search feature provided in JavaHelp is no
> good for finding a text string as it just says there are, eg 4 matches and
> highlights them, but does not take you to them in the HTML page. It the
> HTMl page is 20 pages long, say, it's hard to find the matches!
>
> Regards,
>
> Bill.
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

sumitkishore
Offline
Joined: 2003-06-10
Points: 0

I believe Santhosh Kumar's incremental search (http://www.jroller.com/page/santhosh?entry=myswing_announcing_my_java_net) might be applicable.