Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IndexOutOfBoundsException in setRowHeaderItems #393

Open
ghost opened this issue Nov 5, 2021 · 1 comment
Open

java.lang.IndexOutOfBoundsException in setRowHeaderItems #393

ghost opened this issue Nov 5, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 5, 2021

Everytime I try to repopulate the tableview with a new dataset i get the IndexOutOfBoundsException.

adapter.setAllItems(model.getColumnHeaderList(), model.getRowHeaderList(size), model.getCellList(list));

@asa421
Copy link

asa421 commented May 20, 2023

Are you using pagination?

If pagination is attached, then the listeners do not have time to update the arrays of strings and cells, and when updating the data, the private method private void paginateData() is called, inside which IndexOutOfBoundsException.

pagination.setItemsPerPage(0); // !!!Pagination return IndexOutOfBoundsException
adapter.setAllItems(model.getColumnHeaderList(), model.getRowHeaderList(size), model.getCellList(list));
pagination.setItemsPerPage(100); // Your number of lines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant