Swing Java Jtextpane Styleconstants Allignment Does Not Work Properly

Swing Java Jtextpane Styleconstants Allignment Does Not Work Properly