You are right, having used Java Swing before, I am not so familiar with pointers by now.
I did not realize that in fact a completly new object is created by the keyword "new" while btn is a pointer to this new object.
Thanks, that solved my question!
Bookmarks