button.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent evt)
{
DialogFontChooser chooser = new DialogFontChooser(getFrame(),true);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int mitteX=(int)screenSize.getWidth() / 2;
int mitteY=(int)screenSize.getHeight() / 2;
chooser.setFont(myGetFont());
chooser.setLocation(mitteX-getWidth()/2-200,mitteY-getHeight()/2-200);
chooser.setVisible(true);
if (chooser.result)
{
mySetFont(chooser.getNewFont());
jChanged();
}
}
});