I need to set a JPanel
background with light colors only in order not to cover the text (in bold black).
At this moment I have this:
import java.util.Random;
....
private Random random = new Random();
private JPanel panel = new JPanel();
panel.setBackground( new Color( random.nextInt() ) );
But it generates "any" random color. How can I do that?
Thanks