Hi, We were trying the resize the JTable header even when there was none. This fixes that.
2005-11-21 Mark Wielaard <[EMAIL PROTECTED]> * javax/swing/JTable.java (propertyChange): Only resize header when not null. This get Caliph & Emir again a bit further. I will commit this. Cheers, Mark
Index: javax/swing/JTable.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JTable.java,v retrieving revision 1.62 diff -u -r1.62 JTable.java --- javax/swing/JTable.java 21 Nov 2005 13:18:29 -0000 1.62 +++ javax/swing/JTable.java 21 Nov 2005 21:53:57 -0000 @@ -949,10 +949,13 @@ if (ev.getPropertyName().equals("preferredWidth")) { JTableHeader header = getTableHeader(); - TableColumn col = (TableColumn) ev.getSource(); - header.setResizingColumn(col); - doLayout(); - header.setResizingColumn(null); + if (header != null) + { + TableColumn col = (TableColumn) ev.getSource(); + header.setResizingColumn(col); + doLayout(); + header.setResizingColumn(null); + } } } }
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches