Re: setFont()
- From: usenet@xxxxxxx (Christian Kaufhold)
- Date: Sun, 28 Aug 2005 13:01:57 +0200
Hello!
Frances <fdr58@xxxxxxxxx> wrote:
> what about color? how to set Font Color?
Fonts do not have color. The color is a separate attribute when some
text is actually painted.
> 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..)
textArea.setForeground
Christian
.
- References:
- setFont()
- From: Frances
- setFont()
- Prev by Date: Re: JTextPane: Workaround for invisible text with hanging indents?
- Next by Date: Re: splitPane.addComponentListener
- Previous by thread: setFont()
- Next by thread: Re: setFont()
- Index(es):
Relevant Pages
|