* @license This file is free software; you can modify and redistribute it under the terms of the
* Apache License v2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
-@SuppressWarnings({"serial", "rawtypes"})
+@SuppressWarnings("serial")
public class dragdrop_list_test extends JFrame implements ListSelectionListener
{
private DraggableDroppableList list;
private JTextField fileName;
static private Log logger = LogFactory.getLog(dragdrop_list_test.DraggableDroppableList.class);
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({ "rawtypes", "unchecked" })
public dragdrop_list_test(String startPath)
{
super("dragdrop_test");
// Create the list and put it in a scroll pane
list = new DraggableDroppableList();
- DefaultListModel listModel = (DefaultListModel) list.getModel();
+ DefaultListModel listModel = (DefaultListModel) list.getModel();
list.setCellRenderer(new CustomCellRenderer());
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
list.setSelectedIndex(0);
return hashtable;
}
- public class DraggableDroppableList extends JList implements IDragonDropDataProvider
+ @SuppressWarnings("rawtypes")
+ public class DraggableDroppableList extends JList implements IDragonDropDataProvider
{
- @SuppressWarnings("unchecked")
+ @SuppressWarnings("unchecked")
public DraggableDroppableList()
{
setModel(new DefaultListModel());
}
}
- public class CustomCellRenderer implements ListCellRenderer
+ @SuppressWarnings("rawtypes")
+ public class CustomCellRenderer implements ListCellRenderer
{
DefaultListCellRenderer listCellRenderer = new DefaultListCellRenderer();