Implementation of window-based structures in Java