How could I turn every row into array?
Don't. Instead, build a TableModel
that implements the essential methods, as shown here, using the methods provided by the ODF API.
@Override
public String getColumnName(int col) {…}
@Override
public int getColumnCount() {…}
@Override
public int getRowCount() {…}
@Override
public Object getValueAt(int row, int col) {…}