Create a Word / Text Tagger in Java Swing

  • Follow


Hi , 

I am new to using java swing , i need help 

To create a tagger so that i once open a text file in teh editor i
have
created using Java Swing 

i can Tag any word in the text file by selecting that word, change
color of the word when i tag it
then can save this tagged file to the flat file system and close it 
Next time when i open the same file I should see tagged word in color.

Many thanks for an early reply to this query

Best regards

Rajeev


for eg : if the sample Input file is 

i looked at teh big wolf coming my way, i got thrilled 

then the sample output file (when user opens the above file next time)

i looked at <green>teh </green> big wolf coming my way, i got
<red>thrilled</red>

create tag using java swing
0
Reply rajeev_office 7/30/2003 3:30:06 PM

http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/index.html

could be a starting point.

Why are you not using HTML syntax <font ...> </font> instead, then
you could use javax.swing.JEdtiorPane with setContentType("text/html");

HTH,
sandip
rajeev_office@yahoo.com (Rajeev) wrote in message news:<3551bc33.0307300730.19a840be@posting.google.com>...
> Hi , 
> 
> I am new to using java swing , i need help 
> 
> To create a tagger so that i once open a text file in teh editor i
> have
> created using Java Swing 
> 
> i can Tag any word in the text file by selecting that word, change
> color of the word when i tag it
> then can save this tagged file to the flat file system and close it 
> Next time when i open the same file I should see tagged word in color.
> 
> Many thanks for an early reply to this query
> 
> Best regards
> 
> Rajeev
> 
> 
> for eg : if the sample Input file is 
> 
> i looked at teh big wolf coming my way, i got thrilled 
> 
> then the sample output file (when user opens the above file next time)
> 
> i looked at <green>teh </green> big wolf coming my way, i got
> <red>thrilled</red>
> 
> create tag using java swing
0
Reply sandipchitale 8/1/2003 5:08:27 PM


1 Replies
206 Views

(page loaded in 0.298 seconds)

Similiar Articles:













7/26/2012 1:21:24 PM


Reply: