Package net.sourceforge.squirrel_sql.fw.gui

Examples of net.sourceforge.squirrel_sql.fw.gui.FontInfo.createFont()


      if (fi == null)
      {
        fi = new FontInfo(UIManager.getFont("TextArea.font"));
      }
      _fontLbl.setText(fi.toString());
      _fontBtn.setSelectedFont(fi.createFont());

      updateControlStatus();
    }

    void applyChanges(SessionProperties props)
View Full Code Here


          FontButton btn = (FontButton) evt.getSource();
          FontInfo fi = btn.getFontInfo();
          Font font = null;
          if (fi != null)
          {
            font = fi.createFont();
          }
          font = new FontChooser().showDialog(font);
          if (font != null)
          {
            btn.setSelectedFont(font);
View Full Code Here

    if (propName == null || propName.equals(SessionProperties.IPropertyNames.FONT_INFO))
    {
      FontInfo fi = props.getFontInfo();
      if (fi != null)
      {
        _sqlEntry.setFont(fi.createFont());
      }
    }

    if (propName == null || propName.equals(SessionProperties.IPropertyNames.SQL_ENTRY_HISTORY_SIZE)
              || propName.equals(SessionProperties.IPropertyNames.LIMIT_SQL_ENTRY_HISTORY_SIZE))
View Full Code Here

    {
      if (prefs.isMenuFontEnabled())
      {
        if (fi != null)
        {
          UIManager.put(keys[i], fi.createFont());
        }
      }
      else
      {
        UIManager.put(keys[i], _origUIDefaults.getFont(keys[i]));
View Full Code Here

    {
      if (prefs.isStaticFontEnabled())
      {
        if (fi != null)
        {
          UIManager.put(keys[i], fi.createFont());
        }
      }
      else
      {
        UIManager.put(keys[i], _origUIDefaults.getFont(keys[i]));
View Full Code Here

    {
      if (prefs.isOtherFontEnabled())
      {
        if (fi != null)
        {
          UIManager.put(keys[i], fi.createFont());
        }
      }
      else
      {
        UIManager.put(keys[i], _origUIDefaults.getFont(keys[i]));
View Full Code Here

          FontButton btn = (FontButton) evt.getSource();
          FontInfo fi = btn.getFontInfo();
          Font font = null;
          if (fi != null)
          {
            font = fi.createFont();
          }
          font = new FontChooser().showDialog(font);
          if (font != null)
          {
            btn.setSelectedFont(font);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.