Answers for "set background color to be same as form color in netbeans"

1

how to set background color in jframe in java

package Exaple;

import java.awt.Color;

import javax.swing.JFrame;

public class Window {

	public static void main(String[] args) {
		
		JFrame frame = new JFrame(); 
		frame.setExtendedState(JFrame.MAXIMIZED_BOTH); 
		frame.setVisible(true);
		frame.setTitle("Expaple");
		frame.setBackground(Color.BLUE);
	}

}
Posted by: Guest on July-24-2020

Code answers related to "set background color to be same as form color in netbeans"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language