I am creating a login screen to get up to speed with Swing.
When I run the following code all the elements are displayed BUT their position on the screen is not correct.
is it possible to display the elements like this
username: (textfield here)
password: (passwordfield here)
comment: (comment field here)
while aligning them so it looks nice? (all the labels / fields aligned)
thank you for your time
ps: please feel free to comment my code on my code as this is new for me and that I would like to progress fast
Since you are starting to learn, I strongly recommend, do not use drag and drop style tools. Hand coding has numerous advantages. Search the forums for details on this topic. It has been discussed many times before.
I've stumble on MiG shortly after posting my message and I have managed to position my labels in a much better way.
I was tempted to use a Visual builder (netbeans provides one I think) but I have decided to start coding my UI instead so that I can learn better/more.