X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=kona%2Fsrc%2Forg%2Ffeistymeow%2Fdragdrop%2Fdragdrop_list_test.java;h=2b8dd8ae89d4ed793d8721942ce8a33a1998fe04;hb=e4da0f3a984df2f3145e3f59ef78caece7f19d91;hp=2775560e6d6045b531c60e07b579755b80facc82;hpb=21f089c2c404a27bed5bdaf88a80214cf63f6ee4;p=feisty_meow.git diff --git a/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java b/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java index 2775560e..2b8dd8ae 100644 --- a/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java +++ b/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java @@ -21,21 +21,21 @@ import org.apache.log4j.PropertyConfigurator; * @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); @@ -96,9 +96,10 @@ public class dragdrop_list_test extends JFrame implements ListSelectionListener 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()); @@ -132,7 +133,8 @@ public class dragdrop_list_test extends JFrame implements ListSelectionListener } } - public class CustomCellRenderer implements ListCellRenderer + @SuppressWarnings("rawtypes") + public class CustomCellRenderer implements ListCellRenderer { DefaultListCellRenderer listCellRenderer = new DefaultListCellRenderer();