aspose file tools
The moose likes Swing / AWT / SWT and the fly likes how to use rgb color values to set JPanel background color Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "how to use rgb color values to set JPanel background color" Watch "how to use rgb color values to set JPanel background color" New topic
Author

how to use rgb color values to set JPanel background color

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 908
how to use RGB values to set JPanel Background color, which is not in the color list...
i tried like this but not working for me..



Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4203
    
    3

Use code tags, not quote tags for code. I've fixed it for you this time.

Your code looks reasonable, which usually means the problem is elsewhere, in code you haven't shown us. To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

edit No, it isn't reasonable. Why do you qualify the variable myBlue with the Color class? That shouldn't even compile, and doesn't make any sense.


luck, db
There are no new questions, but there may be new answers.
Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 908
yes i got it it's working for me now thanks...

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to use rgb color values to set JPanel background color
 
Similar Threads
HFJ TwoButtons problems
Pixel Transparency
Catogorizing colors
Points on an Image
Problem with BufferedImage