Finally managed to get the app to be able to do hover-oversand still resize whenever the main container is resized, using a JLayeredPane