my dog learned polymorphism*
The moose likes Struts and the fly likes Displaying the Color on a frame based on the RGB values. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Displaying the Color on a frame based on the RGB values." Watch "Displaying the Color on a frame based on the RGB values." New topic
Author

Displaying the Color on a frame based on the RGB values.

Vidya Gupta
Ranch Hand

Joined: Mar 18, 2012
Posts: 98


Hi,

Am new to java Swings. I tried a small example to display a color on a frame based on the given RGB values. But it is giving me NullPointerException. I don't know why am getting this error. Please if anyone know why it is giving the error, Please let me know.. This is my example program code,

ColorApp.java
---------------



Error StackTrace:
-----------------




Thanks,
Vidya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying the Color on a frame based on the RGB values.
 
Similar Threads
Java file - Anyone willing to look at my java file and see what the probelm is
NullPointer Exception while using Apache POI
Access an array, from different class. How?
SQLException on connect
Where i make mistake?