bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/27486] setValueAt() doesn't work on non-editable cells


From: yvan dot norsa at gmail dot com
Subject: [Bug swing/27486] setValueAt() doesn't work on non-editable cells
Date: 8 May 2006 12:58:03 -0000


------- Comment #3 from yvan dot norsa at gmail dot com  2006-05-08 12:58 
-------
(From update of attachment 11408)
>Index: javax/swing/JTable.java
>===================================================================
>RCS file: /cvsroot/classpath/classpath/javax/swing/JTable.java,v
>retrieving revision 1.99
>diff -u -r1.99 JTable.java
>--- javax/swing/JTable.java    5 May 2006 09:41:15 -0000       1.99
>+++ javax/swing/JTable.java    8 May 2006 12:47:20 -0000
>@@ -3586,8 +3586,7 @@
>   }
>   
>   /**
>-   * Set value for the cell at the given position. If the cell is not 
>-   * editable, this method returns without action. The modified cell is
>+   * Set value for the cell at the given position. The modified cell is
>    * repainted.
>    * 
>    * @param value the value to set
>@@ -3596,8 +3595,6 @@
>    */
>   public void setValueAt(Object value, int row, int column)
>   {
>-    if (!isCellEditable(row, column))
>-      return;
>     dataModel.setValueAt(value, row, convertColumnIndexToModel(column));
>     
>     repaint(getCellRect(row, column, true));


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27486





reply via email to

[Prev in Thread] Current Thread [Next in Thread]