Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: Diff coloring

Reply
Thread Tools

Re: Diff coloring

 
 
Robert Hornsby
Guest
Posts: n/a
 
      08-27-2003
On 26 Aug 2003 21:01:17 PST, http://www.velocityreviews.com/forums/(E-Mail Removed) (Alan Moore)
wrote

>Try calling getHighlighter().setDrawsLayeredHighlights(false) on the
>JTextPanes when you create them. I get the effect you describe in
>JTextAreas by doing that, but I also have to override a method in
>BasicTextUI to get it to repaint the the whole width of the view. If
>your JTextPanes are read-only, though, you night not have to do that.
>
>--Alan


Thanks for your reply.

I am using java 1.4.1_01-b01 and setDrawsLayeredHighlights is not a
method
of HighLighter in this version.

I have tried using getHighlighter().addHighlight but this just
highlights the text, not the blank space, and I can't see any methods
og HighLighter or HighLightPainter which might achieve the desired
result.

Anyone have any ideas?

Thanks

Robert Hornsby
 
Reply With Quote
 
 
 
 
Alan Moore
Guest
Posts: n/a
 
      08-27-2003
On 27 Aug 2003 03:56:10 -0700, (E-Mail Removed) (Robert
Hornsby) wrote:

>I am using java 1.4.1_01-b01 and setDrawsLayeredHighlights is not a
>method of HighLighter in this version.


Sorry, that should have been

((DefaultHighlighter)getHighlighter()).setDrawsLay eredHighlights(false)

--Alan
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Diff CSS styles for diff INPUT TYPE='s? A Traveler ASP .Net 6 08-31-2004 09:17 PM
[ANN] Diff::LCS 1.1.0, Diff::LCS 1.0.4 Austin Ziegler Ruby 3 08-09-2004 06:34 AM
diff Process under diff users Cyril Vi?ville Perl 1 06-29-2004 06:22 PM
Same sessionID retuned to diff browsers in diff machines Berrucho ASP .Net 2 12-05-2003 02:23 PM
Coloring check box list controls Client side H. Scott Buckwalter ASP .Net 0 09-25-2003 02:24 PM



Advertisments