Quickfix window doesn't show import [duplicate]

Solution 1:

In Eclipse 2021-09 (4.21) everything of java.awt.* is filtered out in the content assist by default.

To disable this default filter, go to the preferences (Window > Preferences; in macOS in the application menu) Java > Appearance > Type Filters and uncheck the checkbox java.awt.*.

I reported it to Eclipse and it has been fixed within two weeks, so it will be in the next release Eclipse 2021-12 (4.22) that will be released on December 8, 2021 (and also sooner in the milestone builds starting with M2):

  • Eclipse bug 576549 - [content assist] Missing proposals in Swing, etc. because of java.awt.* type filter enabled by default.