Examples: FontFace property (ViewColumn - Java)

This agent toggles the font face between Helvetica and Default Sans Serif.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

  public void NotesMain() {

    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();

      // (Your code goes here) 
      Database db = agentContext.getCurrentDatabase();
      View view = db.getView("By category");
      ViewColumn vc = view.getColumn(1);
      if (vc.getFontFace().equals("Helvetica")) {
        vc.setFontFace("Default Sans Serif");
        System.out.println("Font face = Default Sans Serif");
      }
      else {
        vc.setFontFace("Helvetica");
        System.out.println("Font face = Helvetica");
      }
        
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}