JTable의 .ods 파일에서 시트를 어떻게 볼 수 있습니까? 나는 간단한 API를 odftoolkit 사용하고 있는데 내가 doc.getTableList().get(0).getRowList()
으로 모든 행을 얻을이 때 파일. 스프레드 시트를 JTable에
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()'의 반환 유형은 무엇입니까? 나는 당신이 그것의 배열을 만들 수있는 몇 가지 방법을 제공한다고 확신한다. – MightyPork
API 용 Javadoc이 있습니까? 그것을 읽으려고 했습니까? – Bill
'getRowList()'는'Row'의 목록을 반환하고'Row' 클래스에서 유용한 메소드를 찾지 못했습니다. 어쩌면 내가 어리 석을 수도 있고 그렇지 않을 수도 있습니다 D 물론 있습니다. 아니, 그냥 좀 봤어. – LivingSilver94