Fix invisible SearchWindow for java>6