关于在eclipse中source的paint(Graphics)

第一篇学习java过程中遇到的一个小问题,但也没有去弄明白为什么会这样,只知道解决方法

就是本人在用jdk1.8之后的版本,当主类继承了Frame后,想重写paint方法时,若从点击主类名右键的source中的override/Implement Methods中的Container类里选择paint(Graphics)时会发现里面并没有这个方法,而这个方法在Window类里面。

猜你喜欢

转载自blog.csdn.net/mistletoe_justin/article/details/82984085