public class ThreadCheckingRepaintManager
extends javax.swing.RepaintManager
To use it, call RepaintManager.setCurrentManager(new ThreadCheckingRepaintManager()) then watch the print out from the console of all threading violations.
Constructor | Description |
---|---|
ThreadCheckingRepaintManager() |
Creates ThreadCheckingRepaintManager.
|
ThreadCheckingRepaintManager(boolean checkIsShowing) |
Creates ThreadCheckingRepaintManager.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addDirtyRegion(javax.swing.JComponent jComponent,
int i,
int i1,
int i2,
int i3) |
|
void |
addInvalidComponent(javax.swing.JComponent jComponent) |
|
boolean |
isCompleteCheck() |
Initially there was a rule that it is safe to create and use Swing components until they are realized but this
rule is not valid any more, and now it is recommended to interact with Swing from EDT only.
|
void |
setCompleteCheck(boolean completeCheck) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDirtyRegion, addDirtyRegion, currentManager, currentManager, getDirtyRegion, getDoubleBufferMaximumSize, getOffscreenBuffer, getVolatileOffscreenBuffer, isCompletelyDirty, isDoubleBufferingEnabled, markCompletelyClean, markCompletelyDirty, paintDirtyRegions, removeInvalidComponent, setCurrentManager, setDoubleBufferingEnabled, setDoubleBufferMaximumSize, toString, validateInvalidComponents
public ThreadCheckingRepaintManager()
public ThreadCheckingRepaintManager(boolean checkIsShowing)
checkIsShowing
- true to only check showing components.public boolean isCompleteCheck()
public void setCompleteCheck(boolean completeCheck)
completeCheck
- true or false.isCompleteCheck()
public void addInvalidComponent(javax.swing.JComponent jComponent)
addInvalidComponent
in class javax.swing.RepaintManager
public void addDirtyRegion(javax.swing.JComponent jComponent, int i, int i1, int i2, int i3)
addDirtyRegion
in class javax.swing.RepaintManager