static int showWindowInTopRightCorner_x = 25; static int showWindowInTopRightCorner_y = 5; static JWindow showWindowInTopRightCorner(final JComponent c) { if (isHeadless()) null; ret swing(func -> JWindow { final JWindow window = showWindow(c); window.pack(); window.setBounds(screenWidth()-window.getWidth()-showWindowInTopRightCorner_x, showWindowInTopRightCorner_y, window.getWidth(), window.getHeight()); window.setAlwaysOnTop(true); window.setVisible(true); ret window; }); }