Revert "Removed JFX8 only code..."

This reverts commit 309e491de51c65d94cb9d54a98cc5b9330ba612a.
Readded popup stuff, trying to stay jfx2.2 compatible