0

I would like to use classes such as Color and Font in my implementation. But the latest Eclipse versions 2021-06, and 2021-09 do not include these classes in the template suggestions. (Interestingly, version 2021-03 does not have the problem/behavior!)

I resorted to manually inserting the corresponding import, for instance

import java.awt.Color;

Even after that, Eclipse will still not provide template suggestions for static fields such as Color.RED.

I noticed similar observations but they seem to be related to compilation, and not template suggestions.

The import java.awt cannot be resolved

Java AWT package "not accessible" in eclipse

I have also tried the suggestion to explicitly state the java.desktop module, but that still does not enhance the template suggestions:

demo with modules

datahaki
  • 548
  • 7
  • 21
  • 1
    This is an unfortunate change that was made to the default filters, it will be reverted in 2021-12. See the duplicate for how to change the filtering to enable them again. – greg-449 Oct 23 '21 at 07:00

0 Answers0