Stopping Java from using discrete graphics on a Mac

Anyone know how to stop Java from using the discrete graphics card on a mac laptop? I hate burning through battery when using the designer to do basic things!

This might have changed in a recent version of Java 9.

edit: doesn’t seem to have, despite the bug reports I found in the Oracle tracker.