src/share/classes/com/sun/java/swing/plaf/motif/MotifComboBoxUI.java

Print this page

        

@@ -95,11 +95,11 @@
      * Overriden to empty the MouseMotionListener.
      */
     @SuppressWarnings("serial") // Superclass is not serializable across versions
     protected class MotifComboPopup extends BasicComboPopup {
 
-        public MotifComboPopup( JComboBox comboBox ) {
+        public MotifComboPopup( JComboBox<Object> comboBox ) {
             super( comboBox );
         }
 
         /**
          * Motif combo popup should not track the mouse in the list.

@@ -175,11 +175,11 @@
             g.fillRect(r.x,r.y,r.width,r.height);
         }
     }
 
     public void paintCurrentValue(Graphics g,Rectangle bounds,boolean hasFocus) {
-        ListCellRenderer renderer = comboBox.getRenderer();
+        ListCellRenderer<Object> renderer = comboBox.getRenderer();
         Component c;
         Dimension d;
         c = renderer.getListCellRendererComponent(listBox, comboBox.getSelectedItem(), -1, false, false);
         c.setFont(comboBox.getFont());
         if ( comboBox.isEnabled() ) {