java中JTextPane使輸出字符到指定的寬度換行,並將垂直滾動條的位置移動到輸出的最後位置...

SimpleAttributeSet set = new SimpleAttributeSet(); Document doc = tp.getStyledDocument(); FontMetrics fm = tp.getFontMetrics(tp.getFont());//獲得JTextPane 的當前字體尺寸 int paneWidth = tp.getWidth();//面板的
相關文章
相關標籤/搜索