Simply add the FixedColumnTable.jar file to your classpath and you have access to all of the classes and methods of the FixedColumnTable.
Copyright (C) 2014-2015 --- Don Spickler
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details, http://www.gnu.org/licenses/.
FixedColumnTable is a table and variable size array storage object that allows the user to store data in a two-dimensional array-like structure and have it displayed automatically in a table format with the option of having any number of fixed columns on the left. The non-fixed columns are user editable, unless the option to edit these cells is turned off.
The class has automatic resizing of the column widths built in. There is also a column minimum value that overrides the resizing modes. If a column width is resized to a with below this minimum the minimum will be used instead. The resize modes are as follows,
The class can be set to accept specific data types, by column, as input in the editable portion of the grid. The data types in the grid do not change, they are always of String type and will need to be converted to other object types when read out of the grid, if desired. The data modes simply make sure that the input is checked and transformed if necessary into the type specified. The result of user input is always stored in the grid as a string. Also note that when the data type is changed the items already in the grid are not altered. So if the data type was DOUBLE_DATA and it is changed to INTEGER_DATA the decimal numbers in the table are unaltered. The data checking is also done on a paste operation. The data modes are as follows,
The example contains an Eclipse project of a very short example of how the FixedColumnTable API works. It simply shows the setup of a table with editable and non-editable columns of the three different data types. The JavaDoc for the API has a more detailed description of the methods available.