public void actionPerformed(ActionEvent e)
{
AttributeSet attr = txtInvoer.getCharacterAttributes(); //new SimpleAttributeSet();
Frame frame = JOptionPane.getFrameForComponent(txtInvoer.getTopLevelAncestor());
FontDialog d = new FontDialog(frame , I18N.gettext("xhtml.Choose_Font"), attr);
d.setModal(true);
d.setVisible(true);
if (d.getResult() == DialogShell.RESULT_OK)
{
attr = d.getAttributes();
// StyleConstants.setBold((MutableAttributeSet)attr,false);
// if (attr.isDefined(CSS.Attribute.FONT_WEIGHT)) {
// String value = attr.getAttribute(CSS.Attribute.FONT_WEIGHT).toString();
// if (value.equalsIgnoreCase(StyleConstants.Bold.toString()))
// StyleConstants.setBold((MutableAttributeSet)attr,true);