• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is RichtextField(rtf) in Java n How to use it?  RSS feed

 
danish shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want to build a text editor using rtf concept..
I have used JTextPane for that i want to replace it with rtf TextField.
How to do that plz help me..

Thanks,
Danish Shaikh.
 
Michael Wiezik
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I recall, rich text field enables you to edit html style formatted text, it means you can use different colours/font sizes in the same RichTextField (and insert images probably).
 
danish shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but i want how to use it n what r the different property for that
 
Don Kiddick
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how about

JTextPane.setEditorKit(new RTFEditorKit());

?
 
danish shaikh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Do u know ne site which can give the better n detail information on richtext.
Thanks.

Regards,
Danish Shaikh
 
Norm Miller
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try

rtf
 
Pritam Barhate
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to know how to use Rich text in SWING see at sun's official java tutorial
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!