Window resize event?

后端 未结 5 2110
星月不相逢
星月不相逢 2021-02-02 07:55

I\'m writing a simple painting program using java, and I want some method to be called whenever the JFrame component is resized. But I can\'t find any method like windowRes
5条回答
  •  误落风尘
    2021-02-02 08:07

    Overriding particular methods of ComponentAdapter is a convenient alternative to implementing all the methods of ComponentListener. Several examples seen here illustrate the "convenience for creating listener objects" mentioned in the API.

提交回复
热议问题