If you do that then this would fail:

public JFrame jf = new ClassThatDoesNotExtendJFrame();//fail