Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JOptionPane runtime error



>This is a known bug in Sun's code, unfortunately it won't be fixed
for
>Swing 1.1.x because they aren't doing any more work on it, and
there's
>no workaround.

Lee Ann thanks for the short and not-so-sweet answer.

However I believe I do have a workaround, but it has one problem that
I
don't know how to fix. Instead of calling the static method, I can
use the
JOptionPane constructor and then use the createInternalFrame method.
But the problem is that I am using many of these dialogs to retrieve
input
and calling setVisible(true) on the returned InternalFrames doesn't
work
just right. As each dialog is created there is never an action
listener
added that would cause the dialog to suspend the main stream until the

dialog is dismissed. So what you get is about ten dialogs poping up
at
once. How can I make them act like the usual focus demanding dialog?


Anthony
Novice Programmer (Java, AppleScript)
Student@ Marshall U.
Scott Depot




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.