> Hello.
> How can I in Java :
> set the rgb color (background color - what command) of JTextArea, i.e.
> (I want light-yellow, i.e).
>
> Thanks :)
there is setBackground - that's I know,
but I am looking for the function which does the conversion of RGB -> color.
Thanks :)
>> Hello.
>> How can I in Java :
[quoted text clipped - 9 lines]
> Load the page, then bring up the search function of your browser, and
> search for the text "background".
Roedy Green - 09 Aug 2007 19:43 GMT
>but I am looking for the function which does the conversion of RGB -> color.
setBackground wants a Color object. See the docs on the Color class
for the various ways to create one. See
http://mindprod.com/jgloss/colour.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Thomas Fritsch - 09 Aug 2007 21:57 GMT
> there is setBackground - that's I know,
> but I am looking for the function which does the conversion of RGB -> color.
The Color constructors do this conversion, for example:
Color background = new Color(255, 255, 128);
yourTextArea.setBackground(background);

Signature
Thomas