-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bummer, I had a feeling.  Thank you for your thorough explanations.  I
guess it won't be so bad to work with callbacks.

Greg Brown wrote:
> This is taken from Sun tutorials:
> 
> // open confirm dialog
> 
> int n = JOptionPane.showConfirmDialog(
>     null,
>     "Would you like green eggs and ham?",
>     "An Inane Question",
> 
>     JOptionPane.YES_NO_OPTION);
> 
> if(n == JOptionPane.YES_OPTION){
>    // open new dialog
>    JOptionPane.showMessageDialog(
>        null,
>        "You selected yes.",
>        "Yes Option",
> 
>        JOptionPane.INFORMATION_MESSAGE);
> }
> 
> Now, if only someone can do that in Pivot.
> 
> This is not possible in Pivot. JOptionPane.showMessageDialog() opens a native 
> dialog and sets a JOptionPane as its content. All Pivot windows are hosted in 
> a single AWT component called DisplayHost. This component is, in turn, hosted 
> either by an applet (BrowserApplicationContext) or a native Frame 
> (DesktopApplicationContext).
> 
> G
> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktfHXgACgkQ5IyIbnMUeTtYJgCglSeXgy9dQClSOrRIdLpdP3Hb
MGoAnigeeubqnxOOlHEY8gPHFrjuNGpW
=srco
-----END PGP SIGNATURE-----

Reply via email to