jQuery in Action, 2nd edition*
The moose likes Swing / AWT / SWT and the fly likes JOptionPane -> YES_NO Dialog Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JOptionPane -> YES_NO Dialog Problem" Watch "JOptionPane -> YES_NO Dialog Problem" New topic
Author

JOptionPane -> YES_NO Dialog Problem

prabhu kandanur
Ranch Hand

Joined: Oct 18, 2003
Posts: 34
Hi
i am using jdk version 1.4.2... in some of my JFrames say in delete command buttons, i wrote Confirm Dialog (asking do you want to delete)"YES-NO" opton. when i press thru mouse the NO button is firing, when i use the TAB control, the focus is transfer to NO button, but YES button only firing, the return values always gives 0 (even when i transfer the focus to NO button). i am facing this problem in this latest version only. in my older version - jdk1.1.7 this problem not atall came. expecting reply soon...
prabhu
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
http://www.coderanch.com/t/338031/GUI/java/JOptionPane-showConfirmDialog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JOptionPane -> YES_NO Dialog Problem
 
Similar Threads
Passing key strokes between objects
FocusListener
Dialog box help
Passing key strokes between objects
Modal dialog box and request focus