This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "getRGB() causing problem!" Watch "getRGB() causing problem!" New topic
Author

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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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
Marshal

Joined: Mar 22, 2005
Posts: 41082
    
  43
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
 
wood burning stoves
 
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