I'm getting magic numbers for jpanel background. Is there a way to get rid of this since it's bad practice:
panel.setBackground(new color (255,255,0));
How can I have custom colors too?
I'm getting magic numbers for jpanel background. Is there a way to get rid of this since it's bad practice:
panel.setBackground(new color (255,255,0));
How can I have custom colors too?
There are some common colors. such as red,blue, etc.
but if you want to set your own colors you must create a object with your colors,
then set it,