I am very new to applets. I was wondering if anyone can help me with this. This applet takes user input as a single number digit on the button click, then draws it in rectangular form. But it keeps flickering when using repaint(). I'm not sure if there is a way to clear the whole applet then repaint this or what other methods would do this correctly. any help would be appreciated.