paintImmediately

fun paintImmediately(component: JComponent, x: Int, y: Int, width: Int, height: Int, paint: (x: Int, y: Int, width: Int, height: Int) -> Unit)

Hands paint the area at (x, y) of width by height, in component's coordinates, grown as repaint grows it; paint is super.paintImmediately. In a Foundation container, the area is grown first by the whole of each visible component it touches whose steps spread or move what it paints, as found among the children and inside the Foundation containers among them. Swing calls paintImmediately on a decorated component as the painting origin of its descendants' repaints and to paint a repaint it recorded itself, and application code may call it. What paintImmediately(int, int, int, int) of a Decoratable answers.