transparent windows is done differently in java 6 and java 7