This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TextPane Problem....
 
Similar Threads
multi-selection list box
JTable
What type of firewall will you use to the validate the application protocol of a netw
html:multibox
JList