2012-02-14 27 views

回答

2
editorPane.scrollRectToVisible(editorPane.modelToView(...)); 
+0

謝謝我試過你的建議。這是我的代碼:'RPSearchToolView.jEditorPane1.scrollRectToVisible(RPSearchToolView.jEditorPane1 .modelToView(RPSearchToolView.jEditorPane1.getSelectionEnd()));'但它不會工作。我的代碼有問題嗎? – dmfrl 2012-02-15 00:41:03

+0

發佈您的[SSCCE](http://www.sscce.org),證明問題。 – camickr 2012-02-15 01:07:34