private JFileChooser pathChooser;
/** The project list model. */
- private SortedListModel projectListModel;
+ private SortedListModel<Project> projectListModel;
/** The project list scroll pane. */
private JScrollPane projectScrollPane;
createActions();
pathChooser = new JFileChooser();
- projectListModel = new SortedListModel();
+ projectListModel = new SortedListModel<Project>();
projectList = new JList(projectListModel);
projectList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
projectList.addListSelectionListener(this);
* @return The list of projects
*/
public Project[] getProjects() {
- return (Project[]) projectListModel.toArray(new Project[projectListModel.size()]);
+ return projectListModel.toArray(new Project[projectListModel.size()]);
}
/**