setFont()
- From: Frances <fdr58@xxxxxxxxx>
- Date: Sun, 28 Aug 2005 00:09:28 -0400
Constructor for class Font: (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Font.html)
Font(String name, int style, int size)
what about color? how to set Font Color?
I'm working w/JTextArea, now realized need to use JTextPane b/c will need diff. font colors depending on user input.. (nothing fancy, no images, no HTML (at least I don't think I need to do w/html..) all font attr's will remain constant, only font color will change.. (also would like if user inputs url for it to be a link..)
I have just spent entire evening looking this up... is not that simple....;) I'm going a bit dizzy... ;)
thank you for any help...
.
- Follow-Ups:
- Re: setFont()
- From: Roedy Green
- Re: setFont()
- From: Christian Kaufhold
- Re: setFont()
- Prev by Date: Re: JTextPane: Workaround for invisible text with hanging indents?
- Next by Date: Re: setting size of elements
- Previous by thread: setting size of elements
- Next by thread: Re: setFont()
- Index(es):
Relevant Pages
|