基本上我有一个名为 FlowLayout.html 的文件,我想将它读入 JEditorPane。到目前为止,我拥有所有代码,但我不知道如何在窗格中打开文件。
JEditorPane jtfInfo = new JEditorPane();
jtfInfo.setEditable(false);
p3.add(jtfInfo);
public void getFlowLayout(){
jftInfo.setContentType("text/html");
//I dont know this step and setContentType gives me an error in netbeans Cannot find symbol
}