Java中好像有很多方法awt Container与验证相关的类。显然他们不进行数据验证。在任何情况下它对 Swing 开发人员都有用吗?一些方法: validate(), invalidate(), validateTree(), isValid() 等
最佳答案
引用 API doc :
The validate method is used to cause a container to lay out its subcomponents again. It should be invoked when this container's subcomponents are modified (added to or removed from the container, or layout-related information changed) after the container has been displayed.
关于java - Container.validate() 方法有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1607899/