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
https://swinghelper.dev.java.net/
| Constructor and Description |
|---|
CheckThreadViolationRepaintManager()
Creates a new CheckThreadViolationRepaintManager object.
|
CheckThreadViolationRepaintManager(boolean completeCheck)
Creates a new CheckThreadViolationRepaintManager object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDirtyRegion(JComponent component,
int x,
int y,
int w,
int h) |
void |
addInvalidComponent(JComponent component) |
boolean |
isCompleteCheck()
DOCUMENT ME!
|
static void |
main(String[] args)
DOCUMENT ME!
|
void |
setCompleteCheck(boolean completeCheck)
DOCUMENT ME!
|
protected void |
violationFound(JComponent c,
StackTraceElement[] stackTrace)
DOCUMENT ME!
|
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponentspublic CheckThreadViolationRepaintManager()
public CheckThreadViolationRepaintManager(boolean completeCheck)
completeCheck - DOCUMENT ME!public boolean isCompleteCheck()
public void setCompleteCheck(boolean completeCheck)
completeCheck - DOCUMENT ME!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)
c - DOCUMENT ME!stackTrace - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.