Hi ElvJOGL and welcome :)
unfortunately there are many outdated jogl samples around
the superbible 6 edition is quite good, although is not the last one, it should already cover opengl 4 as far as
they sayif you want something fast and quick, copy and paste this
hello triangle sample, add jogl as library and you are good to go.
You can learn modern opengl by studing the bible and at the same time trying to apply the sample shown there on jogl by yourself (actually one of the best way to learn), you may want to use the helloTriangle as base to start from, or you can also take a look to the
jogl-samples, a port I made of g-truc ogl-sample