public void actionPerformed(ActionEvent ev){
  String fontName=ProgramProperties.get("Font","Arial-PLAIN-12");
  fontName=JOptionPane.showInputDialog("Enter font",fontName);
  if (fontName != null) {
    execute("set font='" + fontName + "';");
    ProgramProperties.put("Font",fontName);
  }
}

public void actionPerformed ( ActionEvent ev ) { String fontName = ProgramProperties . get ( "Font" , "Arial-PLAIN-12" ) ; fontName = JOptionPane . showInputDialog ( "Enter font" , fontName ) ; if ( fontName != null ) { execute ( "set font='" + fontName + "';" ) ; ProgramProperties . put ( "Font" , fontName ) ; } }
action to be performed
