public class CheckThreadViolationRepaintManager extends RepaintManager
This class is used to detect Event Dispatch Thread rule violations
See How to Use Threads
for more info
This is a modification of original idea of Scott Delap
Initial version of ThreadCheckingRepaintManager can be found here
Easily Find Swing Threading Mistakes
| Constructor and Description |
|---|
CheckThreadViolationRepaintManager() |
CheckThreadViolationRepaintManager(boolean completeCheck) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirtyRegion(JComponent component,
int x,
int y,
int w,
int h) |
void |
addInvalidComponent(JComponent component) |
boolean |
isCompleteCheck() |
static void |
main(String[] args) |
void |
setCompleteCheck(boolean completeCheck) |
protected void |
violationFound(JComponent c,
StackTraceElement[] stackTrace) |
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponentspublic CheckThreadViolationRepaintManager(boolean completeCheck)
public CheckThreadViolationRepaintManager()
public boolean isCompleteCheck()
public void setCompleteCheck(boolean completeCheck)
public void addInvalidComponent(JComponent component)
addInvalidComponent in class RepaintManagerpublic void addDirtyRegion(JComponent component, int x, int y, int w, int h)
addDirtyRegion in class RepaintManagerprotected void violationFound(JComponent c, StackTraceElement[] stackTrace)
Copyright © 2023. All rights reserved.