Skip to content

Commit

Permalink
Merge pull request #35 from xdvrx1/master
Browse files Browse the repository at this point in the history
Unchecked Call `JComboBox`
  • Loading branch information
pH-7 authored Feb 19, 2020
2 parents 1ee70bc + 88680cb commit 2eef7c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/simplejavatexteditor/UI.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ public class UI extends JFrame implements ActionListener {
private static long serialVersionUID = 1L;
private final JTextArea textArea;
private final JMenuBar menuBar;
private final JComboBox fontSize, fontType;
private final JComboBox<String> fontType;
private final JComboBox<Integer> fontSize;
private final JMenu menuFile, menuEdit, menuFind, menuAbout;
private final JMenuItem newFile, openFile, saveFile, close, cut, copy, paste, clearFile, selectAll, quickFind,
aboutMe, aboutSoftware, wordWrap;
Expand Down Expand Up @@ -363,7 +364,7 @@ public void actionPerformed(ActionEvent ev) {
* **************** FONT SETTINGS SECTION **********************
*/
//FONT FAMILY SETTINGS SECTION START
fontType = new JComboBox();
fontType = new JComboBox<String>();

//GETTING ALL AVAILABLE FONT FOMILY NAMES
String[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
Expand Down Expand Up @@ -391,7 +392,7 @@ public void actionPerformed(ActionEvent ev) {

//FONT FAMILY SETTINGS SECTION END
//FONT SIZE SETTINGS START
fontSize = new JComboBox();
fontSize = new JComboBox<Integer>();

for (int i = 5; i <= 100; i++) {
fontSize.addItem(i);
Expand Down

0 comments on commit 2eef7c9

Please sign in to comment.