2D game engine.

I want to make a simple 2D plat-former game, I have made games in panels with paint() but they are glitchy and don’t work well.

Can anyone recommend an engine or some way of making a game like this?

(If you can’t tell I am new to making games in java, I have only modded for other games in it so far)