File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes TextPane Problem.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "TextPane Problem...." Watch "TextPane Problem...." New topic
Author

TextPane Problem....

Steven Hsu
Greenhorn

Joined: Sep 05, 2002
Posts: 2
How do I set the styles( color, fonts ) of char in selection?
I use setFont() ,but it works on the entire not the selection.
thanks for your help...
Zhao Fu Qiang
Greenhorn

Joined: May 29, 2002
Posts: 10
Pls look package javax.swing.text


Extreme Component, Inc.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"zfq" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

And here's a link to Sun's Text tutorial...

Thanks! and welcome to the JavaRanch!
[ September 09, 2002: Message edited by: Nathan Pruett ]

-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: TextPane Problem....