Is there an (easy?) way to get the fext in a (J)TextField or (J)Label scale with the size of the component?
I could do a getSize() whenever a component resizes and maybe use that to adjust the font size of the component. Basically specify a point size to height in pixles ratio and multiply the the height of the component by the ratio and use the resulting value to set the font size. But I'm not sure how to handle the width esp. since I will not be using monospace fonts.
Anybody done this before?
I could do a getSize() whenever a component resizes and maybe use that to adjust the font size of the component. Basically specify a point size to height in pixles ratio and multiply the the height of the component by the ratio and use the resulting value to set the font size. But I'm not sure how to handle the width esp. since I will not be using monospace fonts.
Anybody done this before?