我想在jeditorPane中打开pdf文件,它打开pdf页面,但不是以实际格式打开,而是以二进制格式打开。是否可以在jeditorpane或jtextpane中打开pdf文件。 我正在使用以下代码。 try
{
JEditorPane pane1= new JEditorPane();
File f1= new File("path of the pdf file");
我想在JEditorPane的overriden DefaultStyledDocument(也提供自定义EditorKit)中插入一个LeafElement:但是我得到了一个javax.swing.text.StateInvariantError。 因此,遵循JGuru forum topic的指导原则,我添加了writeLock()和writeUnlock()调用,但是这次我的JEditorP