• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setting bg in jDialog

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i set background color in a jDialog?
my code:

nothing of this works...

TiA
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure that I understand. The default background color is white isn't it?

I got the following to work in a JFrame:



If something like this doesn't work for you, the only thing that I can think of that I might have done differently is to disable the layout managers:



[ May 19, 2007: Message edited by: Kaydell Leavitt ]
[ May 19, 2007: Message edited by: Kaydell Leavitt ]
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The default background color is white isn't it?

no
and its not a frame, but a jDialog
(layout is automatic)
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your help, Craig

while i'm still studying your code, i added
 
Kaydell Leavitt
Ranch Hand
Posts: 690
Eclipse IDE Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are there some key points that you can tell me so that I can get layout managers to work for me?

Kaydell
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic