Why declaring Swing variables in longform
I initially learnt how to design GUIs directly as source code. Now we (I am a student) are supposed to start using an interface to speed up the process. However, when I go into the source code I notice that the tool is generating longer code that I would have by hand. (I am using Netbeans)
For example it generates this:
private javax.swing.JTextField topFieldText;
Whereas I would ordinarily just do this:
private JTextField topFieldText;
I know this is probably a nuisance question but I would appreciate a response that explains why it does this. Which one of the two is best practice?
Many thanks in advance to those who will respond.