I have just started learning Swing, and was trying a few programs on NetBean. Is it really good Idea to use an IDE while learning? Because while learning Java we were told to use command prompt and not any IDE. If it is good to Use an IDE,do i have to know about the code the system generates for me, when I drag n drop a button ot textfield? Please tell me the best way to learn Swing(I know it differs from person to person, still I am interested about the most preffered way)and some good books or online tutorials that could help me.
Hand coding to start with is best because you get your basics right. You can use an IDE and still hand code. I personally never use the drag and drop features. Initially drag and drop might look attractive, but once you get on to the designing stage, you appreciate that hand coding always is the best.