2013-07-13 92 views

回答

2

獲得來自編輯的cookie當前窗格中使用,e.g:

try { 
     StyledDocument doc = editorCookie.openDocument(); 
     if (editorCookie != null) { 
     JEditorPane[] panes = editorCookie.getOpenedPanes(); 
     if (panes.length > 0) { 
      int linenumber = panes[0].getCaret().getDot(); 
      doc.insertString(linenumber, "emagenio.com", null); 
     } 
    } 

問候,@tmmg

+0

什麼實際問題? –

相關問題