< prev index next >

src/com/sun/interview/wizard/RenderingUtilities.java

Print this page
rev 145 : 7902237: Fixing raw use of parameterized class
Reviewed-by: jjg

@@ -73,11 +73,11 @@
         private DefaultCellEditor tfCE;
         private DefaultCellEditor delegate;
         private PropertiesQuestion q;
 
         public PCE(PropertiesQuestion q) {
-            cbCE =  new PropCellEditor(new JComboBox(), q);
+            cbCE =  new PropCellEditor(new JComboBox<Object>(), q);
             tfCE =  new RestrainedCellEditor(new JTextField(), q);
             this.q = q;
         }
 
         public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {

@@ -216,24 +216,24 @@
     /**
      * Table cell renderer for enforcing constraints on the combo box used
      * for editing.
      */
     public static class PropCellEditor extends DefaultCellEditor {
-        protected PropCellEditor(JComboBox box) {
+        protected PropCellEditor(JComboBox<Object> box) {
             super(box);
         }
 
-        PropCellEditor(JComboBox box, PropertiesQuestion q) {
+        PropCellEditor(JComboBox<Object> box, PropertiesQuestion q) {
             this(box);
             question = q;
         }
 
         /**
          * For use when this renderer is being used outside the context of
          * an interview and question.
          */
-        PropCellEditor(JComboBox box, ValueConstraints rules) {
+        PropCellEditor(JComboBox<Object> box, ValueConstraints rules) {
             this(box);
             this.rules = rules;
         }
 
         @Override
< prev index next >