JFrame jf = new JFrame("MacOSUITest");
JButton button = new JButton("Exit");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
System.exit(0);
}
});
jf.getContentPane().add(button);
// Tester: see that Application->About produces our popup
// Ditto for Preferences and Shutdown.
MacOSAppAdapter adapter =
new MacOSAppAdapter(jf, abouter, prefser, printer, shutter);
adapter.register();
jf.setSize(300, 200);
jf.setVisible(true);