如何从.ods文件在JTable中查看工作表?我使用odftoolkit,这就是我打开文件的方式
String filepath;
if (openfile.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
filepath = openfile.getSelectedFile().getAbsolutePath();
try {
doc = SpreadsheetDocument.loadDocument(filepath);
} catch (Exception e) {
JOptionPane.showMessageDialog(null,
Locale.getString("fileError.message"),
Locale.getString("fileError.title"),
JOptionPane.ERROR_MESSAGE);
return;
}此时,我得到了doc.getTableList().get(0).getRowList()的每一行。如何将每一行转换为数组?
https://stackoverflow.com/questions/18066540
复制相似问题