Set Opacity setting method to Java 7 specific