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

86 Views Asked by At

Why "Control + Space " auto-complete help doesn't work for paintComponent() method and it needs to be typed in completely?

2

There are 2 best solutions below

0
On

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. You might have imported both of them.

1
On

Probably error. In case of error sometimes eclipse didn't show error, but in result members aren't listed for auto complete.