modified MyCanvas.java
modified MyProgBar.java * Replaced repaint() with paint(getGraphics()) to suppress flickering
This commit is contained in:
parent
c1eac8d056
commit
1ff9582e81
@ -35,6 +35,6 @@ class MyCanvas extends Canvas {
|
|||||||
|
|
||||||
public void setWord(String txt) {
|
public void setWord(String txt) {
|
||||||
word = txt.trim();
|
word = txt.trim();
|
||||||
repaint();
|
paint(getGraphics());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,6 @@ class MyProgBar extends Canvas {
|
|||||||
|
|
||||||
public void setPos(int p) {
|
public void setPos(int p) {
|
||||||
curVal = p;
|
curVal = p;
|
||||||
repaint();
|
paint(getGraphics());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user