super("JColorChooser Test Frame");
setSize(200,100);
final JButton go = new JButton("Show FontChooser");
go.addActionListener(new ActionListener() {
final FontChooser chooser = new FontChooser(FontPicker.this);
boolean first = true;
public void actionPerformed(ActionEvent e) {
chooser.setVisible(true);
// If we got a real font choice, then update our go button
if (chooser.getNewFont() != null) {
go.setFont(chooser.getNewFont());
go.setForeground(chooser.getNewColor());
}
}
});
getContentPane().add(go);
addWindowListener(new BasicWindowMonitor());