• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane

 
MrIT
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there something similar for AWT? I want different color lines of text. I don't want to use swing because all my users would have to download the plugin. Any thoughts ?
Thanks
 
Jane Griscti
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi MrIt,
You can use java.awt.TextArea to display multiple lines but I think if you want to display text in various colours you need to use a Canvas and draw the text.
Please read the JavaRanch Name Policy and re-register using a name that complies with the rules.
Thanks for your cooperation.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
Co-author Mike Meyers' Java 2 Certification Passport
[This message has been edited by Jane Griscti (edited December 01, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!