// //Performatives r = ( Performatives ) p ;
// }
// }
public void handleRequestGive() {
final JOptionPane pane = new JOptionPane( "xxx msg" );
pane.setWantsInput( true );
pane.setInputValue( "" );
pane.setOptions( new String[]{"Yes", "No"} );
JInternalFrame internalFrame = pane.createInternalFrame( contentPane,
"xxx title" );
internalFrame.setVisible( true );
pane.show();
internalFrame.addInternalFrameListener( new InternalFrameListener() {
public void internalFrameOpened(InternalFrameEvent e) {
}
public void internalFrameIconified(InternalFrameEvent e) {
}
public void internalFrameDeiconified(InternalFrameEvent e) {
}
public void internalFrameDeactivated(InternalFrameEvent e) {
}
public void internalFrameClosing(InternalFrameEvent e) {
}
public void internalFrameClosed(InternalFrameEvent e) {
System.out.println( pane.getInputValue() + ":" + pane.getValue() );
}
public void internalFrameActivated(InternalFrameEvent e) {
}
} );