The Java bug database states that this was fixed in version 1.4.1 build 5. Try testing against this version to see if it will work for you.
| Dan Patten <[EMAIL PROTECTED]>
07/03/2002 11:59 AM
|
To: "JDJList" <[EMAIL PROTECTED]> cc: Subject: [jdjlist] RE: Java 1.4 Editable JComboBox Conversion Questions |
Found the JComboBox problem in Sun's bug log as shown below. Has anyone got
a workaround other than switching to a different look and feel?
Bug Id 4673880
Votes 5
Synopsis REGRESSION: Modified editable JComboBox in Windows LAF does not
release focus.
Category java:classes_swing
Reported Against 1.4
Release Fixed
State Closed, duplicate of 4664606
Related Bugs
Submit Date Apr 24, 2002
Description
FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
FULL OPERATING SYSTEM VERSION :
Microsoft Windows 2000 [Version 5.00.2195]
Service Pack 2
A DESCRIPTION OF THE PROBLEM :
When an editable JComboBox is modified using the keyboard
instead of the mouse, it's FocusListener will cause it to
reaquire focus when handling a FocusLost event. Note that
this only happens with using the Windows LookAndFeel
because WindowsComboBoxUI$WindowsComboBoxEditor.setItem()
calls selectAll().
-----Original Message-----
From: Dan Patten [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 11:33 AM
To: JDJList
Subject: [jdjlist] Java 1.4 Editable JComboBox Conversion Questions
If you have a JComboBox that is editable so that the editor value is not in
the model, Java 1.4 appears to prevent you from leaving the JComboBox.
Previously we have been in the habit of having the "value" in the comboBox
blank when the JFrame is displayed. The user could click our exit button if
they changed their mind and didn't want to fill in the data. (Or they could
go to some other field and edit it first.) Under 1.4 this doesn't work. When
you click the exit button the cursor disapears then reappears in the
comboBox and the JFrame remains. (The Windows close box does still let you
close).
What are we missing here? What do we need to do to use the editable
JComboBox to get the behavior we used to get?
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
