Any reason why you don't use the free upgrade to jmp17?
The new Workflow Builder is really great
Here a version with
<<Modal
which should work on Jmp 16.2
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = dt << Graph Builder(
<<on close(
ex = New Window( "message",
<<Modal,
V List Box(
Text Box( "close?" ),
H List Box( Button Box( "OK" ), Button Box( "Cancel" ) ) )
);
If( ex["button"] == 1,
Close( (gb << Get Data Table), noSave )
);
ex["button"] == 1 // don't close the window if the user doesn't press OK
;
),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);