I was wondering how could I get started making games with java? I tried looking up tutorials but I couldnt find any ,also if I make a game with java and it connects to a database would someone be able to decompile the game and see the stuff to connect to the database
Looooong time ago, when I was trying to start programming with Java, I followed a tutorial to create a simple Space Invaders in Java. I am pretty sure that there are much new (and better?) tutorials currently available on the net, but just in case... this is the tutorial I followed. It has 27 lessons that you can follow, and at the end you end up with a nice Space Invaders :)
You didn't mention how experienced you are at coding in Java but you will want to either look at tutorials in OpenGL for 3D work or research Tile engines for 2D.
Check out LWJGL with Slick.