Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4135968
Votes 1
Synopsis Not clear if Focus Lost event should be generated when Window/Dialog closed
Category guides:none
Reported Against 1.2beta3
Release Fixed
State 11-Closed, duplicate of 4290675, bug
Priority: 4-Low
Related Bugs 4290675
Submit Date 07-MAY-1998
Description
If a window or dialog is closed via a shortcut on the window decoration
(ie. the [x] in the right corner on Win 95/NT), then the component
that currently has focus in the window/dialog does not receive a focus
lost event. It is unclear if it should or not.
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 31-MAR-1999
Stefan Maric
What is the STATE of play regarding this ?
I have a JDialog with a JTextfield on it
I have code which updates a DB after the MODAL DIALOG closes
I have attached Interactions 'Action_Performed' & 'Focus_Lost' to the
JTextField so that I can modify the data (prior to DB update)
If I change the Text & THEN click the Window Close [X] button - I get the
FOCUS LOST event sometime AFTER I have returned from the Dialog.show (and have
therefore completed my DB update)
ie I have updated the DB with the Text data BEFORE it has been changed !!!



PLEASE NOTE: JDK6 is formerly known as Project Mustang