classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] Revised patch: JTable and DefaultTableColumnModel


From: Roman Kennke
Subject: Re: [cp-patches] Revised patch: JTable and DefaultTableColumnModel
Date: Tue, 05 Jul 2005 15:29:44 +0200
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)


Hi David,

Attached is a revised version of the patch I proposed late last week.
It adds implementations for the isCellEditable() and
createDefaultColumnsFromModel() methods in JTable, and fixes some bugs
uncovered while writing Mauve tests for the new methods.

2005-07-05  David Gilbert  <address@hidden>

        * javax/swing/JTable.java:
        (addColumn): retrieve correct column name,
        (convertColumnIndexToModel): remove check for > columnCount and let
        exception happen,
        (getColumnName): retrieve name from TableColumn,
        (isCellEditable): implemented,
        (createDefaultColumnsFromModel): implemented.
        * javax/swing/table/DefaultTableColumnModel.java:
        (addColumn): throw exception for null argument, set correct column
        index in TableColumnModelEvent,
        (removeColumn): use correct column index,
        (moveColumn): move the column, don't swap it. Also added argument
        checks,
        (getColumnIndex): reimplemented.

I've committed more Mauve tests to cover these changes.  OK to commit?

Looks Ok, please commit.
/Roman





reply via email to

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