OK, here is the solution I found:
To make the sheet appear:
NSApplication.sharedApplication().beginSheet (sheetWindow,mainWindow,null,null,null);
To make it disappear:
NSApplication.sharedApplication().endSheet(sheetWi ndow);
sheetWindow.close();
Thanks for your help,
Thierry