@@ -62,7 +62,8 @@ public class UI extends JFrame implements ActionListener {
6262 private static long serialVersionUID = 1L ;
6363 private final JTextArea textArea ;
6464 private final JMenuBar menuBar ;
65- private final JComboBox fontSize , fontType ;
65+ private final JComboBox <String > fontType ;
66+ private final JComboBox <Integer > fontSize ;
6667 private final JMenu menuFile , menuEdit , menuFind , menuAbout ;
6768 private final JMenuItem newFile , openFile , saveFile , close , cut , copy , paste , clearFile , selectAll , quickFind ,
6869 aboutMe , aboutSoftware , wordWrap ;
@@ -363,7 +364,7 @@ public void actionPerformed(ActionEvent ev) {
363364 * **************** FONT SETTINGS SECTION **********************
364365 */
365366 //FONT FAMILY SETTINGS SECTION START
366- fontType = new JComboBox ();
367+ fontType = new JComboBox < String > ();
367368
368369 //GETTING ALL AVAILABLE FONT FOMILY NAMES
369370 String [] fonts = GraphicsEnvironment .getLocalGraphicsEnvironment ().getAvailableFontFamilyNames ();
@@ -391,7 +392,7 @@ public void actionPerformed(ActionEvent ev) {
391392
392393 //FONT FAMILY SETTINGS SECTION END
393394 //FONT SIZE SETTINGS START
394- fontSize = new JComboBox ();
395+ fontSize = new JComboBox < Integer > ();
395396
396397 for (int i = 5 ; i <= 100 ; i ++) {
397398 fontSize .addItem (i );
0 commit comments