Hi @NataeGames,
I created a tiny demo game with a basic inventory for you!
You can play with it at https://biyectivo.com/Inventory/
You can also download the full source code at https://bitbucket.org/biyectivo/inventory/src/main/. I tried to comment the key parts so it's faster for you to understand it.
Hope you like it!