Well, here's a little bit more about why I'm doing things this way. I'm writing a program for entering Spanish verbs and thier properties into a database as well as editing ones that already exist in the database. Each time a character is entered into the field, the program checks the database to determine whether the verb entered already exists in the database. If it does, the properties of that verb populate the other fields in the interface. If, then, the user modifies one or more of the verb's properties the verb is marked as "dirty"--recent changes have not been saved. If the user neglects to click "Save" and instead starts typing a different verb into the field, I would like to prompt them to save the previous verb when the key is pressed (before anything appears in the text box) and then once the key is released (once the new text has shown up in the text box) I would like to load the verb from the database or clear the fields.
So, if possible, I don't want to act on the keyPressed event until after BOTH the JOptionPane is closed and the character input has been placed in the text box.
Main Topics
Browse All Topics





by: sciuriwarePosted on 2003-08-16 at 12:48:12ID: 9166450
Because your JOptionPane catches the focus.
If necessary you could have the key-release be processed from there.
Can you tell us why you want to act on releasing the key, while the JOptionPane is in need for input?
;JOOP!