Q
Q
Quad_Tree2014-09-17 10:48:26
Java
Quad_Tree, 2014-09-17 10:48:26

How to set color in JFrame?

I have a color that looks like this in RGB format: rgb(200, 221, 242). How to set this color as background for JSlider?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
XF0, 2014-09-17
@Quad_Tree

slider.setOpaque(true);
slider.setBackground(new Color(200, 221, 242));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question