how to set frame colo in java
getContentPane().setBackground(Color.YELLOW); //Whatever color
how to set frame colo in java
getContentPane().setBackground(Color.YELLOW); //Whatever color
how to set the backtound color in java
[your frame name].getContentPane().setBackground([your color here]);
or
[your panel name here].setBacroundColor([your color here])
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);
}
}
jframe color
private JFrame frame;
frame.getContentPane().setBackground(Color.BLACK);
java background color
import java.awt.Color;
....
[your panel name here].setBackground(Color.[some color like BLACK]);
how to set the backtound color in java
[your frame name].getContentPane().setBackground([your color here]);
or
[your panel name here].setBacroundColor([your color here])
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us