Original report by John Zeringue (Bitbucket: zeringus, GitHub: Unknown).
I develop an application that currently stores and manipulates data in a vanilla JavaFX TableView. I already use your library for creating dialogs and master-detail panes, so I was trying today to test your SpreadsheetView to see if it would better serve my users' needs.
All I want to do right now is create a spreadsheet like you see when you first open Excel--an "infinite" grid of nothing.
To accomplish this, I tried new SpreadsheetView() and new SpreadsheetView(new GridBase()), which both seemed like reasonable attempts given the current documentation.
The former throws a NullPointerException, because the method initRowFix is not null safe. I'm not sure what's the intended behavior for this constructor.
The latter throws a NullPointerException for similar internal reasons, however, given that the documentation for new GridBase() promises that it "[c]reates [a] grid with 'unlimited' rows and columns", this is an illogical result for the end user.
So I suppose that I create a zillion empty cells to initialize what I consider to be an empty spreadsheet? That just seems grossly inefficient.
I'm sure I'm misunderstanding at least part of what you guys are trying to do here, however, these exceptions should not occur with default constructors in any case, and the documentation needs to do a better job of communicating exactly how to use this new control that seems so full of potential.
Thanks, John
该提问来源于开源项目:controlsfx/controlsfx