Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
 
PREVIOUS NEXT
Tagged: #Java #JPanel #set #background #color
ADD COMMENT
Topic
Name
3+9 =