tag:blogger.com,1999:blog-1411886923465364571.post3348575080062007982..comments2023-12-05T02:20:09.047-08:00Comments on HandFeel: java JTextPane testHandFeelhttp://www.blogger.com/profile/11623480726233455617noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-1411886923465364571.post-59078832566167908542008-10-08T10:15:00.000-07:002008-10-08T10:15:00.000-07:00답변이 조금 늦은거 같군요JTextPane은 JTextArea와 다르게 문자를 Style로...답변이 조금 늦은거 같군요<BR/><BR/>JTextPane은 JTextArea와 다르게 문자를 Style로 처리합니다.<BR/><BR/>문자 추가 방법은 (개행 포함)<BR/>JTextPane textPane = new JTextPane();<BR/>StyledDocument doc = textPane.getStyledDocument();<BR/>try<BR/>{<BR/>doc.insertString(doc.getLength(), "abc\n", null);<BR/>doc.insertString(doc.getLength(), "def\n", null); <BR/>}<BR/>catch (BadLocationException ble)<BR/>{<BR/>}<BR/>이렇습니다.<BR/><BR/>자세한 내용은<BR/>http://java.sun.com/docs/books/tutorial/uiswing/components/text.html<BR/>에서 example index. 로 이동하면 샘플 코드를 받으실 수 있습니다.Unknownhttps://www.blogger.com/profile/06521500019274741376noreply@blogger.com