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: http://img823.imageshack.us/img823/9140/hz7.png Hovewer if i increase the size of the frame, it becomes like this: http://img259.imageshack.us/img259/6308/eari.png the font size doesn't increase. and i don't have an idea on how to make this work.
trashgod
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