I'm trying to call setBackground
on a JPanel
, so that it matches the color of my JFrame
, but the color is some how brighter than the one I type in.
I've have tried setting HSB, RGB, HEX code, they all give me the same color, a brighter version of my color.
Don't quite know how to get the color I want?
edit:
I get my colors from Photoshop. I look up the right colors (that i want) and copy the HSB RGB or HEX code. It looks as it should in Photoshop, but java gives me e brighter color?
I have used the java code:
Color color = new Color(0x94b3c7);
jpanel.setBackground(color);