Re: setFont()



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
.



Relevant Pages

  • Re: Change Font Color when I type the letter
    ... Condition1: Cell value is - equal to - M ... Seelect Format and set font color to blue ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Hyperlink Colors
    ... Highlight link, ... Set font color to color want, ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ...
    (microsoft.public.frontpage.client)
  • Re: coditional formatting
    ... "Biff" wrote: ... > If the default font color is black then you only need one condition: ... > Set font color to BLACK ... >> Divide each cell by 100,000 ...
    (microsoft.public.excel.worksheet.functions)