TextEditor Alignment




seems that this is a subject that was already posted before, but i could not see in the posts any solution.

How can I make a TextEditor component to have the text align right or centered, since by default if left alignment.





As far as I know there is no way to do this. If you only need a basic texteditor then you could draw one yourself, maybe you could use the paintOverChildren() method along with a drawFittedText(). But if it's a fully functional editor you need, with text alignment, I don't think that is possible yet.