This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Thats it. I'm using a panel to draw a colored map. Each area of the map has a different color. And i want to get the color under the mouse cursor when the mouse moves so i can know over what area the mouse is over.
So i made a MouseMotionListener and when the mouse moves i'm able to get the point the mouse cursor is over. But i'm stuck trying to find out which color is at that point
If you want to get the idea of what i am doing, my work-in-progress is at this page (requires JRE 5.0)
Damn... I�ve tested at my windows box here, at work and at a friends Linux box, both of them with JDK 5.0 and things went fine...
Whats your box? Whata JRE version are you using?
Joined: Jan 14, 2004
win xp professional version 2002 sp2 C:\jexp>java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)
Could somebody else test my applet and tell me if its working? It doesnt works for Craig... At home, under Linux it works but gives me an exception when i try to reload the applet. I think it has to do with resource caching...
Under Windows, here at work, it works perfectly, reloading and all
Works ok for me. No exceptions in the Java Console, only the word "init" printed each time I refresh.
Using Firefox 1.0.6 with Java 1.6 (1.6.0-ea-b35).
Joined: Jun 07, 2005
Thanks Brian! The init is supposed to appear... That applet is giving me trouble on some random machines, and i cant find why...
Joined: Jun 07, 2005
Originally posted by Craig Wood: win xp professional version 2002 sp2 C:\jexp>java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)
Hey, Craig! Think i nailed the problem! could you test the link again? Everyone else, could you test it for me