🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17722

Simpel Color(int,int,int) problem

#17722
From: Ernest Schloesser
Date: Tue, 06 Oct 1998 00:00
18 lines
1021 bytes
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: <6vcr93$imo7@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,bc11f7a209416892,start
X-Google-Attributes: gidf74b3,public
From: "Ernest Schloesser" <e.schloesser@bcl.de>
Subject: Simpel Color(int,int,int) problem
Date: 1998/10/06
Message-ID: <6vcr93$imo7@forums.borland.com>
X-Deja-AN: 398218784
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Newsgroups: borland.public.jbuilder.java.language