// paint: graphics/component width/component height // called in AWT thread static JComponent dynamicallyPaintedComponent2(final VF3 paint) { ret swing(() -> new JComponent { public void paintComponent(Graphics g) { callF(paint, (Graphics2D) g, getWidth(), getHeight()); } }); } static JComponent dynamicallyPaintedComponent2(IVF3 paint) { ret dynamicallyPaintedComponent2(toVF3(paint)); }