modified MyCanvas.java

modified   MyProgBar.java
* Replaced repaint() with paint(getGraphics()) to suppress flickering
This commit is contained in:
mbirth 2004-12-08 10:21:09 +00:00
parent c1eac8d056
commit 1ff9582e81
2 changed files with 2 additions and 2 deletions

View File

@ -35,6 +35,6 @@ class MyCanvas extends Canvas {
public void setWord(String txt) {
word = txt.trim();
repaint();
paint(getGraphics());
}
}

View File

@ -51,6 +51,6 @@ class MyProgBar extends Canvas {
public void setPos(int p) {
curVal = p;
repaint();
paint(getGraphics());
}
}