You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
If your window is a JFrame, JDialog or JWindow you can try
Code:
myFrame.getContentPane().setBackground(yourColor)
Little explanation on this.
You can do this in this way as well.
Code:
myFrame.setBackground(yourColor)
In this way, when you run the application, background color flashes and gone. That is because the frame made up of mane components involving. That's why we used a "Content Pane" in the hardwired code.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one. To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Has someone helped you? Then you can To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. their helpful post.
Want to make your IDE the best? To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. (Close on July 13, 2008)