> JTable.selectAll doesn't do anything if there are no rows or no columns. > But it should still select all columns if there are no rows and the other way > round. > It is seen that isColumnSelected() will return false for all columns after > calling selectAll() if there happened to be no rows. > > Fix is made to select all columns even if there are no rows and similarly for > rows if there are no columns.
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Use local var for selectionModel ------------- Changes: - all: https://git.openjdk.org/jdk/pull/24025/files - new: https://git.openjdk.org/jdk/pull/24025/files/c8451558..144e7bdc Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=24025&range=04 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24025&range=03-04 Stats: 11 lines in 1 file changed: 5 ins; 1 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/24025.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/24025/head:pull/24025 PR: https://git.openjdk.org/jdk/pull/24025