Bit of a newbie question but this has always baffled me and I have not been able to get a simple answer.

Just wonder why Netbeans moans about this code


frame = new JFrame();
...