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);
cde0ee
, the Photoshop Color is94b3c7
and1d557a
(as in the source code) is even darker (but a similar hue). – Lillianalillie94b3c7
for java, its the HEX i get from photoshop. Could it have anything to do with my Panel? shouldn't int be on top? Its a panel that's added to a contentPane. – Seventeenth