Answers for "Java JPanel set background color"

0

Java JPanel set background color

import javax.swing.JPanel;
import java.awt.Color;

JPanel panel = new JPanel();
panel.setBackground(Color.green);
//To know all the colors, check this link:
//https://docs.oracle.com/javase/7/docs/api/java/awt/Color.html
Posted by: Guest on April-17-2021

Code answers related to "Java JPanel set background color"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language