@@ -62,7 +62,8 @@ public class UI extends JFrame implements ActionListener {
62
62
private static long serialVersionUID = 1L ;
63
63
private final JTextArea textArea ;
64
64
private final JMenuBar menuBar ;
65
- private final JComboBox fontSize , fontType ;
65
+ private final JComboBox <String > fontType ;
66
+ private final JComboBox <Integer > fontSize ;
66
67
private final JMenu menuFile , menuEdit , menuFind , menuAbout ;
67
68
private final JMenuItem newFile , openFile , saveFile , close , cut , copy , paste , clearFile , selectAll , quickFind ,
68
69
aboutMe , aboutSoftware , wordWrap ;
@@ -363,7 +364,7 @@ public void actionPerformed(ActionEvent ev) {
363
364
* **************** FONT SETTINGS SECTION **********************
364
365
*/
365
366
//FONT FAMILY SETTINGS SECTION START
366
- fontType = new JComboBox ();
367
+ fontType = new JComboBox < String > ();
367
368
368
369
//GETTING ALL AVAILABLE FONT FOMILY NAMES
369
370
String [] fonts = GraphicsEnvironment .getLocalGraphicsEnvironment ().getAvailableFontFamilyNames ();
@@ -391,7 +392,7 @@ public void actionPerformed(ActionEvent ev) {
391
392
392
393
//FONT FAMILY SETTINGS SECTION END
393
394
//FONT SIZE SETTINGS START
394
- fontSize = new JComboBox ();
395
+ fontSize = new JComboBox < Integer > ();
395
396
396
397
for (int i = 5 ; i <= 100 ; i ++) {
397
398
fontSize .addItem (i );
0 commit comments