Resource Loader / Loading Screen

Hey there!
I want to make a Loading Screen( a progress bar painted with Java2D)

Painting the ProgressBar is no problem.
I’m more confused how to load the Resources dynamically.

My game is seperated by Scenes and the Game should be like this:

  • Loading
  • Title Screen
  • Loading
  • Level1
  • Loading
  • Level2

and so on. Since Title and every Level uses different Fields and Images and Music and Sounds to load, I have no Idea how to start a “SceneLoader”.
I have no Idea how to “detect” what has to be loaded because for example Level 1 uses 2 Backgrounds, while Level 2 uses 4 Backgrounds etc. :clue: