Sets the language-sensitive orientation that is to be used to order the elements or text within this component. Language-sensitive LayoutManager and Component subclasses will use this property to determine how to lay out and draw components. ---JEditorPane--- 这个我没尝试出右边输入的方法 ---JTextPane---- 方法: setComponentOrientation() 代码:(从右向左输入) textPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);