File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes getRGB() causing problem! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "getRGB() causing problem!" Watch "getRGB() causing problem!" New topic

getRGB() causing problem!

Nitesh Panchal
Ranch Hand

Joined: Dec 23, 2008
Posts: 48
here is the code

when i omit getRGB() method it works fine else it doesn't . Can anybody suggest me what is the problem?
Nitesh Panchal
Ranch Hand

Joined: Dec 23, 2008
Posts: 48
why no replies?
Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

Probably because you haven't described the problem. You didn't say what constituted "works fine" and "doesn't". You didn't post any error messages or say whether any errors occurred. The problem could even be that one version of the code didn't compile for all we can tell. You need to provide details.
Nitesh Panchal
Ranch Hand

Joined: Dec 23, 2008
Posts: 48
No error is caused as such but the applet isn't executing. if i omit this code then it works fine

the problem is only with the above snippet
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41155
We still don't know what "the problem" is. Have you checked the Java Console for error messages? What are you expecting to happen, and what is actually happening? TellTheDetails

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: getRGB() causing problem!
Similar Threads
Need help breaking up this code
KeyEvent problem on a JPanel
Calling an applet from another class of the same package
Moving Circles
How to draw a chart with multiple y-axises