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){
}
「JList mobileSuit.setModel(listModel)」行のコメントを外すと、「TestUI.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.」と報告する netbeans の出力が表示されます。間違っています。助けてください