added hc setwm for java-compatibility.. (doesn't work too well, though)