 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mabrev Guest
|
Posted: Fri Sep 19, 2003 9:54 am Post subject: Problem with JComboBox in j2sdk 1.4.2_01 |
|
|
Hi,
I've got a JComboBox, and I want to change its background color. I use this code:
BasicComboBoxEditor editor = (BasicComboBoxEditor)myJComboBox.getEditor();
editor.getEditorComponent().setBackground(SystemColor.control);
This code works with versions 1.3.1 and 1.4.1, but with version 1.4.2_01 it doesn't.
Can anyone tell me another way to change the background color??
Thanx in advance.
|
|
| Back to top |
|
 |
Karsten Lentzsch Guest
|
Posted: Fri Sep 19, 2003 10:00 am Post subject: Re: Problem with JComboBox in j2sdk 1.4.2_01 |
|
|
"Mabrev"
| Quote: | This code works with versions 1.3.1 and 1.4.1,
but with version 1.4.2_01 it doesn't.
|
To understand and answer your question
we must know the look&feel you are using.
Best regards,
--
Karsten Lentzsch
www.JGoodies.com - Java User Interface Design
|
|
| Back to top |
|
 |
Mabrev Guest
|
Posted: Mon Sep 22, 2003 9:05 am Post subject: Re: Problem with JComboBox in j2sdk 1.4.2_01 |
|
|
"Karsten Lentzsch" <Karsten (AT) JGoodies (DOT) com> wrote
| Quote: | "Mabrev"
This code works with versions 1.3.1 and 1.4.1,
but with version 1.4.2_01 it doesn't.
To understand and answer your question
we must know the look&feel you are using.
Best regards,
|
I'm using Windows XP look and feel, and I was wrong, I think the
problem it wasn't due to java version, it's due to the last jre
version 1.4.2-b28.
Thanks
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|