Package nu.fw.jeti.plugins.xhtml.fontchooser

Examples of nu.fw.jeti.plugins.xhtml.fontchooser.FontDialog


        putValue(MNEMONIC_KEY, mnemonic);
    }
   
    public void actionPerformed(ActionEvent e) {
    AttributeSet attr = new SimpleAttributeSet();
    FontDialog fontD = new FontDialog(frame, I18N.getText("drawing","Choose_font"), attr);
    fontD.setModal(true);
    fontD.setVisible(true);

    attr = fontD.getAttributes();
    String family = StyleConstants.getFontFamily(attr);
    if (family != null) {
      board.setFontFamily(family);
    }
    int size = StyleConstants.getFontSize(attr);
View Full Code Here


      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);
View Full Code Here

TOP

Related Classes of nu.fw.jeti.plugins.xhtml.fontchooser.FontDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.