1
폴더에 저장된 XSS 및 XSL을 사용하여 올바른 형식으로 XML을 표시하는 XML 파일이 있습니다. 내가 다음 코드를JEditorPane에 스타일 시트가있는 XML 표시
JEditorPane editor = new JEditorPane();
editor.setBounds(114, 65, 262, 186);
frame.getContentPane().add(editor);
editor.setContentType("html");
File file=new File("c:/r/testResult.xml");
editor.setPage(file.toURI().toURL());
모두 사용할 때 내가 볼 수는 스타일링없이 XML의 텍스트 부분입니다. 스타일 시트로이 디스플레이를 만들려면 어떻게해야합니까?
감사합니다. 많이 도움이되었습니다. – sam