File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

JOptionPane -> YES_NO Dialog Problem

prabhu kandanur
Ranch Hand

Joined: Oct 18, 2003
Posts: 34
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...
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
I agree. Here's the link:
subject: JOptionPane -> YES_NO Dialog Problem
It's not a secret anymore!