Article View: borland.public.jbuilder.java.language
Article #17723Re: Simpel Color(int,int,int) problem
From: Col Bell
Date: Tue, 06 Oct 1998 00:00
Date: Tue, 06 Oct 1998 00:00
27 lines
1228 bytes
1228 bytes
I think you mean:
bgColor = new Color(bgred,bggreen,bgblue);
Ernest Schloesser wrote in message <6vcr93$imo7@forums.borland.com>...
>This code give a compiler error: Method Color(int,int,int) not found
>
> int bgred,bggreen,bgblue;
> bgred=bggreen=bgblue=0;
> param=getParameter("bgred"); if (param!=null) bgred=
>Integer.valueOf(param,16).intValue();
> param=getParameter("bggreen"); if (param!=null)
>bggreen=Integer.valueOf(param,16).intValue();
> param=getParameter("bgblue"); if (param!=null) bgblue=
>Integer.valueOf(param,16).intValue();
> bgColor=Color(bgred,bggreen,bgblue);
>
>I did include:
> import java.awt.*;
>
>What is wrong ? I'm stunned.
>
>Ernest
>
>
>
Technical Details
Message-ID:
<6vcvj3$imq9@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6vcr93$imo7@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,bc11f7a209416892 X-Google-Attributes: gidf74b3,public From: "Col Bell" <colbell@bigfoot.com> Subject: Re: Simpel Color(int,int,int) problem Date: 1998/10/06 Message-ID: <6vcvj3$imq9@forums.borland.com> X-Deja-AN: 398234004 References: <6vcr93$imo7@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language