#2 Unified custom selectors for Swing and JavaFX