问题
I would like to know if there are methods of automatically increasing the font size based on the size of a component. I have this gui here: Hovewer if i increase the size of the frame, it becomes like this:

回答1:
Some L&Fs support a sizeVariant, illustrated here with com.apple.laf.AquaLookAndFeel
. Alternatively, you can scale the font to fill the space allocated by your chosen layout, as shown here.

来源:https://stackoverflow.com/questions/17392183/automatically-increasing-font-size-in-swing