jeditorPaneでpdfファイルを開こうとしていますが、pdfページを開きますが、実際の形式ではなく、バイナリ形式です。pdfファイルをjeditorpaneまたはjtextpaneで開くことはできますか。私は次のコードを使用しています。
try
{
JEditorPane pane1= new JEditorPane();
File f1= new File("path of the pdf file");
pane1.setPage(f1.toURL());
}
catch(Exception ex)
{
}