简体   繁体   English

自动完成不适用于Eclipse中的paintComponent(Graphics g)

[英]Auto-complete not working for paintComponent(Graphics g) in Eclipse

为什么“ Control + Space”自动完成帮助不适用于paintComponent()方法,需要完全输入?

Its because there might be an ambiguity between the paintcomponent of AWT/Swing and the parameters that it needs consists of 1D and 2D graphics. 这是因为AWT / Swing的paint组件与其所需的参数(由1D和2D图形组成)之间可能存在歧义。 You might have imported both of them. 您可能同时导入了它们。

Probably error. 可能是错误。 In case of error sometimes eclipse didn't show error, but in result members aren't listed for auto complete. 如果发生错误,eclipse有时不会显示错误,但是结果没有列出要自动完成的成员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM