Originally Posted by
aisthesis
Your import javax.swing.JFrame; has to be what allows you to leave off the JFrame part. It wasn't completely clear to me that that always works when you have the import statement, but I'd say that's gotta be the reason why NetBeans doesn't complain.
This is not true. Would have to see all of his code to know the reason. I would guess that the object that contains the method, that contains that code, is extending JFrame (or extending something that is extending JFrame).