CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Roman Kennke <[EMAIL PROTECTED]> 06/05/16 19:27:37
Modified files: javax/swing : JTable.java javax/swing/plaf/basic: BasicTableUI.java Log message: 2006-05-16 Roman Kennke <[EMAIL PROTECTED]> PR 26521 * javax/swing/JTable.java (rowHeights): New field. (initializeLocalVars): Call setRowHeigt instead of rowHeight=, in order to initialize rowHeights correctly. (tableChanged): Nullify rowHeights when model changes. Only create default columns from model when corresponding property is set. Sync table model with rowHeights as appropriate. (valueChanged): Call repaint with the correct rectangle. (rowAtPoint): Handle rowHeights. (getCellRect): Mostly rewritten. Check for boundaries of model and return (0,0,0,0) or (0,0,width,height) when outside. Handle component orientation. Round correctly. (getRowHeight(int)): Implemented for variable row height. (setRowHeight(int,int)): Implemented for variable row height. (setRowHeight(int)): Nullify rowHeights. (setModel): Notify tableChanged(). * javax/swing/plaf/basic/BasicTableUI.java (installDefaults): Create rendererPane in installUI. (installUI): Create and install rendererPane. (uninstallUI): Uninstall rendererPane and nullify rendererPane and table. (paint): Correctly handle rowMargin. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/JTable.java.diff?tr1=1.104&tr2=1.105&r1=text&r2=text http://cvs.savannah.gnu.org/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicTableUI.java.diff?tr1=1.50&tr2=1.51&r1=text&r2=text