try{
        String[] mobileSuit;
        File packageFile = openDialogFile("Select", "Choose folder that contain overall mobile suit folder", JFileChooser.DIRECTORIES_ONLY);
        mobileSuit = packageFile.list();
        DefaultListModel<String> listModel = new DefaultListModel<>();
        for(String el : mobileSuit){
            listModel.addElement(el);
        }
        this.packagePath = packageFile.getPath();
        JList_mobileSuit.setModel(listModel);
        JList_mobileSuit.setSelectedIndex(0);
    }catch(java.lang.NullPointerException e){
    }
When i uncomment " JList mobileSuit.setModel(listModel) " line,netbeans's output that report "TestUI.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. " .I'm still confused as to what I am doing wrong.Please help me
 
    