Monday, May 22, 2006

my crapplet has internal JPanels, and it was not repainting on load, only when the window was resized.

solution:

add this:
public void repaint(Graphics g){
update(g);
refreshUI(); //this is the function to redraw the GUI
}

0 Comments:

Post a Comment

<< Home