我有一个JEditorPane,即以这种方式在250px X 250px的图像中安装:
JEditorPane editorPanePreview = new JEditorPane();
String logosrc = MainWindow.class.getResource("/resources/logo.png").toString();
editorPanePreview.setText("<html><img src= " + logosrc + " ></img></html>");
the image is shown correctly but it is by default aligned in the top left corner of the JEditorPane, i want to align it in the bottom right corner of the JEditorPane; Is it possible ?
• 如何在正确的底层角调和JEditorPane的内容?