简体   繁体   中英

Eclipse not giving suggestions for java.awt.Color

This may be a dumb question, but I do not know what to do. I write Java applications as a hobby, so I don´t have a deep understanding how Eclipse works. Until the last time I ran Eclipse, it was able to give me suggestions on all common classes that I´m used to. But now it doesn´t give me suggestions for importing java.awt.Color (figure 1). If I write the import manually, it doesn´t give me suggestions for the instantiation (figure 2). If I create a Color object, it doesn´t give me suggestions for Color methods (figure 3)..

I tried to Window->Preferences->Java->Editor->Content Assist->Advanced and check all options. Doesn´t work. What can I do?

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在 Window > Preferences > Java > Appearance > Type Filters 并取消选中所有之后解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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