bug-classpath
[Top][All Lists]
Advanced

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

[Bug swing/26521] JTable does not initialise correctly, testcase include


From: cvs-commit at developer dot classpath dot org
Subject: [Bug swing/26521] JTable does not initialise correctly, testcase included
Date: 16 May 2006 19:28:10 -0000


------- Comment #5 from cvs-commit at developer dot classpath dot org  
2006-05-16 19:28 -------
Subject: Bug 26521

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Roman Kennke <address@hidden>        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 <address@hidden>

        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


-- 


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





reply via email to

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