src/share/classes/javax/swing/plaf/ListUI.java

Print this page

        

@@ -48,11 +48,11 @@
      * @param list the list
      * @param location the coordinates of the point
      * @return the cell index closest to the given location, or {@code -1}
      * @throws NullPointerException if {@code location} is null
      */
-    public abstract int locationToIndex(JList list, Point location);
+    public abstract int locationToIndex(JList<?> list, Point location);
 
 
     /**
      * Returns the origin in the given {@code JList}, of the specified item,
      * in the list's coordinate system.

@@ -60,11 +60,11 @@
      *
      * @param list the list
      * @param index the cell index
      * @return the origin of the cell, or {@code null}
      */
-    public abstract Point indexToLocation(JList list, int index);
+    public abstract Point indexToLocation(JList<?> list, int index);
 
 
     /**
      * Returns the bounding rectangle, in the given list's coordinate system,
      * for the range of cells specified by the two indices.

@@ -78,7 +78,7 @@
      * @param list the list
      * @param index1 the first index in the range
      * @param index2 the second index in the range
      * @return the bounding rectangle for the range of cells, or {@code null}
      */
-    public abstract Rectangle getCellBounds(JList list, int index1, int index2);
+    public abstract Rectangle getCellBounds(JList<?> list, int index1, int index2);
 }