STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run a Java application that shows a JFrame. Use Activity Monitor's Energy tab to see that it is using the "High Perf GPU".

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
That the Java application will not require the discrete / high perf GPU and will use the integrated GPU.
ACTUAL -
The Java application requires the discrete / high perf GPU and causes the system to switch to using the discrete GPU and thus use more energy / battery drain.

Chien Yang (Inactive)
added a comment - 2015-07-31 10:18 The first link in the description is broken due to an ending comma. Here is the link that works:
https://developer.apple.com/library/mac/qa/qa1734/_index.html