让Swing处理对UI元素的包装,但是要密切注视组件的大小;不要获取一次组件的尺寸然后就一直使用这些值。
Let Swing handle packing UI elements, but keep an eye on the size of the component; don't just get the dimensions once and keep using those values.
另外,最好使用另一个包装器来确保info . h只生成一次。
It's also advisable to use another wrapper to ensure that info.h is generated only once.
包装器可以把内容限制在一次使用。
应用推荐