public class MacOSHandler extends Application {
private Dialog about;
public MacOSHandler(PlayerFrame frame) {
about = new AboutDialog(frame);
addApplicationListener(new AboutBoxHandler());
}
class AboutBoxHandler extends ApplicationAdapter {
public void handleAbout(ApplicationEvent event) {
EventQueue.invokeLater(new Runnable() {
public void run() {
about.setVisible(true);
}
});
event.setHandled(true);
}
}
}