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
}
solution:
add this:
public void repaint(Graphics g){
update(g);
refreshUI(); //this is the function to redraw the GUI
}

