public void buttonPressed(Button button) {
sheet.open(frame);
}
});
sheet.getWindowStateListeners().add(new WindowStateListener() {
public Vote previewWindowOpen(Window window, Display display) {
return Vote.APPROVE;
}
public void windowOpenVetoed(Window window, Vote reason) {