Set WMName for java