1 package com.hammurapi.jcapture; 2 3 import java.awt.Frame; 4 5 import com.sun.awt.AWTUtilities; 6 import com.sun.awt.AWTUtilities.Translucency; 7 8 public class AWTUtilitiesTranslucener extends Translucener { 9 10 @Override makeTranslucent(Frame frame)11 protected void makeTranslucent(Frame frame) { 12 if (AWTUtilities.isTranslucencySupported(Translucency.TRANSLUCENT)) { 13 AWTUtilities.setWindowOpacity(frame, 0.7f); 14 } 15 } 16 17 } 18