if you are "programming in Java for the first time" and are smart, you don't.
first learn the language, the syntax and how stacktraces and the api's can be used to your advantage.
just blindly typing code you don't really understand will lead to countless hours of debugging you could've avoided.
Murphz: tutorialspoint and javatpoint are not good places to learn Java development.
If you do want to link to a java tutorial online, it would be better to link to the official tutorials: https://docs.oracle.com/javase/tutorial/
Murphz: yes and no. the title of this thread reads:
"programming in java for the first time" to me, this means he doesn't know how to initialize variables, how to declare them, the difference between Objects and primitives, the use of interfaces and inheritance, ...
Yes, he might be trying to start UI programming, but this is far from a recommended course. At this point, all he would be able to do, is duplicate code he doesn't understand or would not be able to write on his own.
The best way for him to start, is at the beginning, not at the 'finish'. When building a house, you start with the cellar. It's no use placing a roof if the foundations and the walls aren't there yet.
A good book is an excellent source of information. Of course you don't want to invest heavily into books for rapidly developing technology, the latest hype, etc. etc. but for stable things and general information they're far better than unedited (often flawed) blogs.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...