JFileChooser chooser=new JFileChooser();
int returnvalue=chooser.showOpenDialog(null);
try
{
if(returnvalue==chooser.APPROVE_OPTION)
XWPFDocument doc = new XWPFDocument(newFileInputStream(chooser.getSelectedFile()));
}catch(Exception e){
JOptionPane.showMessageDialog(null,e);
}
错误是
cannot find symbol constructor XWPFDocument(java.io.fileinputstream)
可以请任何人帮我解决问题吗?
编辑 :-
图片如下图--->