Applet compilation pb

From: Boniface Frederic (frederic.boniface_at_free.fr)
Date: 02/27/04


Date: Fri, 27 Feb 2004 15:25:04 +0100

Hey, I recently decided to learn java and picked up tutorials and samples
over the net, but each time i try to compile an applet I have the same
problem ; in the paint method i cannot use the Color variable :

public void paint(Graphics g)
{
    ...
    g.setColor(Color.white); (<-- cannot resolve symbol)
    ...
 }

I m using Java 1.4.2_02-b0 on XP.

Any ideas what's going on and how to fix it will be greatly appreciated.
Thanks in advance.



Relevant Pages

  • Re: simple compilaton question
    ... > before I try to compile Main? ... "javac *.java" in each of my java source file directories the first ... with gcj. ... slow to ask for help on mailing lists. ...
    (comp.lang.java.programmer)
  • A Q about Borland JBuilder9.
    ... I got a free evaluation copy of Borland's JBuilder9. ... I also got a book about JAVA, and I am trying to type, compile and run some ... errormessage that the applet isn't initialised. ...
    (comp.lang.java)
  • Re: Java server wont run after reboot
    ... Working with classpaths in Java isn't too hard, ... package definitions in your source code. ... Execute from that directory, no classpath definition needed. ... Assuming that you compile your code in the same directory and deposit the ...
    (RedHat)
  • Re: Java programmer lured back by .Net (Questions)
    ... I have finally decided to put all my business logic in C++ and compile that to native code. ... Security is the only reason why I could see that being a problem but I'm sure there is a way around it. ... Of course it learned a lot from Java, and improved upon many things which Java is slowly catching up on. ... I would like to be able to place my executable on my remote server and then "load" the executables on demand from accross the internet - so that there are no executables on the local machine for prying eyes to reverse engineer. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Standard Database Interface?
    ... Windows binary and examples athttp://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=TclBlend. ... use native tcl and binary packages. ... and Java i.e Tcl/TK 8.4.13 and Java 1.4.2.12. ... patient enough to show me a step by step method on how to compile ...
    (comp.lang.tcl)