trying to make Swing API match FX API