> 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