Anyone could give me a hint as to how to do text search in a EditorPane.
I used the indexOf(String str) command in java.lang.String class, and it will 
give me a positive value if the given word exists in the text. However, I 
could not come up a way to hightlight the word found, or locate the same words 
in the text.

Thanks!


>===== Original Message From [EMAIL PROTECTED] =====
>Send Advanced-swing mailing list submissions to
>       [EMAIL PROTECTED]
>
>To subscribe or unsubscribe via the World Wide Web, visit
>       http://eos.dk/mailman/listinfo/advanced-swing
>or, via email, send a message with subject or body 'help' to
>       [EMAIL PROTECTED]
>
>You can reach the person managing the list at
>       [EMAIL PROTECTED]
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Advanced-swing digest..."
>
>
>Today's Topics:
>
>   1. JTable (Josef Bajada)
>
>--__--__--
>
>Message: 1
>Date: Sun, 22 Apr 2001 03:53:34 +0200
>From: Josef Bajada <[EMAIL PROTECTED]>
>Reply-To: Josef Bajada <[EMAIL PROTECTED]>
>To: Advanced Swing <[EMAIL PROTECTED]>
>Subject: JTable
>
>Hello,
>
>I have a JTable in a JScrollPane whose number of columns and column
>names are generated at runtime.
>
>Since the number of columns may be large I opted to use the
>AUTO_RESIZE_OFF setting so that the Horizontal Scrollbar can
>appear and be used to scroll and view the different columns.
>
>Now my problem is that sometimes the number of columns is small
>(minimum is 2) and this will appear very un-neat for the table's
>appearance since it will only take half the JScrollPane (apart from
>that the unused area sometimes gets filled up with garbage when I
>scroll vertically).
>
>What I wish is that initially, all the columns are resized to fit the
>width of the table, (identical to the way the AUTO_RESIZE_ALL_COLUMNS
>works) but then the user can choose to expand the width of the columns
>and then the Horizontal scrollbar appears.
>
>How can I go about it?
>
>Thanks,
>
> Josef                          mailto:[EMAIL PROTECTED]
>
>
>
>
>--__--__--
>
>_______________________________________________
>Advanced-swing mailing list
>[EMAIL PROTECTED]
>http://eos.dk/mailman/listinfo/advanced-swing
>
>
>End of Advanced-swing Digest


_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to