About the JXLabel
I was making some tests about it and... Well, I just identified another problem, now about the alignments...
Well, when I first did the old code I had to return different values of the alignments, depending if it's painting or not. Because the alignment turns with the text. That was another reason that I just let four options for the rotation. Because, doing this, it's easier to align the text. But, when the user could set any rotation, it gets a little more complicated.
The thing is... Well, imagine a rectangle inside another one. When you rotate the inside one, the alignment will never be like it's supposed to be, because the alignment turns with that rectangle...
So... I think that the sizes has to be reduced to the minimum and the alignment has to be controlled by the x and y of the rotation... I mean:
It will need a lot of calculations (sin, cos, etc)... So, I think that there're a lot of work to do. :^)
So, I'm going to be on vacation for the next month, but my computer comes with me and I'm going to post here every time that I have something new. ;^)
Message was edited by: mario_cesar