Skip to content

Instantly share code, notes, and snippets.

@thisMagpie
Created July 2, 2015 14:06
Show Gist options
  • Save thisMagpie/59b5b3edb4bc42a13417 to your computer and use it in GitHub Desktop.
Save thisMagpie/59b5b3edb4bc42a13417 to your computer and use it in GitHub Desktop.
/**
* windowClosing:
* Invoked when a window is in the process of being closed.
* @param e A WindowEvent object
*/
public void windowClosing(WindowEvent e) {
Object o = e.getSource();
if (o instanceof javax.accessibility.Accessible) {
boolean isToplevel = isToplevel(o);
AccessibleContext ac = ((javax.accessibility.Accessible)o).getAccessibleContext();
AtkWrapper.windowClose(ac, isToplevel);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment