sclass ScreenOverlay { JWindow window; Color bgColor = colorWithAlpha(Color.blue, 128); settable Rect bounds; settable bool hideOnMouseOver; void show() swing { if (window == null) { assertNotNull(+bounds); window = new JWindow; window.setBackground(bgColor); main setBounds(window, bounds); window.setAlwaysOnTop(true); } window.setVisible(true); } void hide() swing { if (window == null) ret; window.setVisible(false); } }