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

Select Table Cell Area accepting Strings mixes up row and column IDs #166

Open
rzezimierz opened this issue Dec 13, 2023 · 0 comments
Open

Comments

@rzezimierz
Copy link

Hello,
keyword Select Table Cell Area mixes up arguments provided as strings (check below snippet from TableOperator.java):

    private void selectCellArea(int startRow, int endRow, int startColumn,
            int endColumn) {
        jTableOperator.setRowSelectionAllowed(true);
        jTableOperator.addRowSelectionInterval(startRow, endRow);
        jTableOperator.setColumnSelectionAllowed(true);
        jTableOperator.addColumnSelectionInterval(startColumn, endColumn);
    }

    public void selectCellArea(String startRow, String endRow,
            String startColumn, String endColumn) {
        selectCellArea(Integer.valueOf(startColumn),
                Integer.valueOf(endColumn), Integer.valueOf(startRow),
                Integer.valueOf(endRow));
    }

selectCellArea accepting cell coordinates as strings puts Integer.valueOf(startColumn) into startRow parameter etc.

Best regards,
Damian Wojtanowski

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