public Window init() { try { startup(); } catch (IOException e) { logger.error("Error: ", e); } TipiScreen echo = (TipiScreen) context.getDefaultTopLevel(); TipiFrame w = (TipiFrame) echo.getTipiComponent("init"); if (w == null) { throw new RuntimeException("No toplevel found!"); } echo.setWindow(w.getWindow()); return w.getWindow(); }