* A test/demo
*
* @param args
*/
public static void main(String[] args) {
JFrame jf = new JFrame();
jf.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
JTextField preview = new JTextField("Test");
jf.getContentPane().add(preview, BorderLayout.NORTH);
FontChooserPanel fcp = new FontChooserPanel(null, null, preview);
fcp.setCurrentFont(preview.getFont());
jf.getContentPane().add(fcp, BorderLayout.SOUTH);
jf.pack();
jf.setVisible(true);
}