Changing font-size at runtime in a Swing application

前端 未结 1 443
半阙折子戏
半阙折子戏 2021-01-13 15:42

A lot of web sites these days have an option to let the user increase or decrease the size of the font that appears on the site. I\'d like to add similar functionality to m

1条回答
  •  暖寄归人
    2021-01-13 16:09

    The code will increase the font once, but switching back to regular size has no effect

    I believe you need to update the UIManager with a FontUIResource, not just a Font.

    0 讨论(0)
提交回复
热议问题