In this article we will see how to change JFrame background color in GUI using swing (Using Drag & Drop Components In Netbeans IDE) in java.
First of all create your project and inside a project create one JFrame Form.
After creating JFrame form see in the top right side corner
Swing Containers.
Inside Swing Containers select Panel.
Drag & Drop this panel in your JFrame form.
After placing this panel in your form Spread this panel in your JFrame form.
After spreading this panel in your JFrame form select this panel and go to properties in bottom right side corner.
Select Background properties and select your favorite color.
See this below video for better understand.
0 Comments
Enter Your Comment