This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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,