question: 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 ) ; } }
target:  action to be performed