Solved

JDialog -Background color

Posted on 1998-08-01
2
1,126 Views
Last Modified: 2006-11-17
I couldnt see the backgournd color of Jdialog box changing even after setting the background color
for Jdialog box?
0
Comment
Question by:geostp
2 Comments
 
LVL 4

Expert Comment

by:evijay
ID: 1230054
set the background color for the content pane of JDialog. not the JDialog itself.

JComponent cmp = JDialog.getContentPane();

for cmp, set the background color.

0
 
LVL 3

Accepted Solution

by:
mjenkins earned 10 total points
ID: 1230055
Don't forget to setOpaque(true) in order to force the background to be painted.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
micro services vs rest web services 16 107
numbers ascending pyramid 101 196
windows explorer path to command prompt 5 46
table example 4 29
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question