Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1185
UltraTextEditor Text Alignment Issue
posted

Hi

I am using an UltraTextEditor in a gridbaglayout panel. its is set to dock so that the UTE expands to fill the space given to it.

I have set multiline on so that it does actually fill the space and have set Text Align to middle and centre, hoping that the text will sit in the middle of the UTE in the same way that it does with a label.

However it doesn't, the text sits in the middle of the horizontal axis, but at the top of the box. Is there anything I can do to make it sit in the middle of the vertical axis in the same way an ultralabel works?

My application resizes the windows based on the screen size, and on big displays it looks a bit rubbish.

I am also looking for a way to get the font to resize based on the size of the UTE control so it propotionally readjusts according to the space it has.

Thanks in advance