I am new to JAVA.
I have two JLabels with having letters different Font Sizes. I just want to align them so that
the base of the letters are in the same line. Something like this:
A .. II
AA IIIIII ------> Same base line
I tried using Various Layout Managers: BoxLaout, GridBagLayout, but am missing something and I dont want to do it by Trial and Error.
If someone can help me understand how to do it that woud be great.
Thanks in anticipation.
If you need more help post your SSCCE.
constraint.anchor = GridBoxLayout.BASELINE;
did the trick.!