I would like to convert ArrayList
into 2D array of Objects
. List is something like
[[AD,ADCB, N], [AFC, Fund, Y], [IO, dfdfdfd, N]]
I would like to convert this List into array of objects and I would like to modify Y, N field into Boolean Values someting like
Object[] rowdata = {
{AD, ADCB, Boolean.FALSE},
{AFC, Fund, Boolean.TRUE},
{IO, dffdfdf, Boolean.FALSE}}
after that I can stuff into JTable
model and those boolean
values will be visible as JCheckboxes
.
What should be the best way to convert this list into 2D array of objects so that I can pass into JTable
TableModel
?