문제

I want to make a StyledDocument from 2 other StyledDocuments in Java. Is there a possibility of doing this?

도움이 되었습니까?

해결책

Obviously it's not possible to sum two documents this way. Each document has own structure of Elements (nodes, Leaves). To merge them properly you in fact need to copy all branches with sub nodes from one document instance ot another.

The link shows how it could be done. http://java-sl.com/tip_merge_documents.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top