(Component cmp)
| 4212 | /// |
| 4213 | /// - `cmp`: the given component on the screen |
| 4214 | void repaint(Component cmp) { |
| 4215 | if (isCellRenderer() || cmp.getWidth() <= 0 || cmp.getHeight() <= 0 || paintLockImage != null) { |
| 4216 | return; |
| 4217 | } |
| 4218 | // null parent repaint can happen when a component is removed and modified which |
| 4219 | // is common for a popup |
| 4220 | Component parent = getParent(); |
| 4221 | |
| 4222 | if (parent != null && parent.isVisible()) { |
| 4223 | parent.repaint(cmp); |
| 4224 | } |
| 4225 | } |
| 4226 | |
| 4227 | /// Repaint this Component, the repaint call causes a callback of the paint |
| 4228 | /// method on the event dispatch thread. |
no test coverage detected