frame.pack()和frame.validate()之间的区别。 [英] difference between frame.pack() and frame.validate().

查看:124
本文介绍了frame.pack()和frame.validate()之间的区别。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

frame.pack()和frame.validate()之间有什么区别?

解决方案

frame.validate() - 强制帧重绘自己。更多信息 - http://answers.yahoo.com/question/index?qid=20110108153559AA7fVXX [< a href =http://answers.yahoo.com/question/index?qid=20110108153559AA7fVXX\"target =_ blanktitle =New Window> ^ ]



frame.pack() - 用于调整Jframe的大小,更多信息 - http:// answers .yahoo.com / question / index?qid = 20110308225634AA8Z4r5 [ ^ ]

what's the difference between frame.pack() and frame.validate()?

解决方案

frame.validate() - Forces the frame to redraw itself. More Info - http://answers.yahoo.com/question/index?qid=20110108153559AA7fVXX[^]

frame.pack() - Used to resize the Jframe , More Info - http://answers.yahoo.com/question/index?qid=20110308225634AA8Z4r5[^]


这篇关于frame.pack()和frame.validate()之间的区别。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆