RFR: 5108458: JTable does not properly layout its content [v6]

Alexey Ivanov aivanov at openjdk.org
Tue Nov 21 16:57:10 UTC 2023


On Tue, 21 Nov 2023 14:40:35 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Does it mean that `table.getCellRect` returns an incorrect value in right-to-left case?

Yes, it does! Clicking to select doesn't work correctly: wherever I click only the Salary column gets selected, there's no way to move selection to another cell (*visibly* at least), editing doesn't work either: if I select the Salary cell in the first row and press F2 to edit the value, the editor appears in the left top corner where the cell rendered before the fix.

To enable editing, add


        @Override
        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return true;
        }


to the `Model` class.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/16374#discussion_r1400895980


More information about the client-libs-dev mailing list