NeedMiscHelp
Programmer
Everyone says to use JComponent or JPanel instead of Canvas. I override paintComponent() with the code that was formerly in paint(), but nothing shows up. I just get a gray panel. I put in a System.out.println() statement in the paintComponent() method and make sure it only prints out at the most 5 times (based on a global variable). I see that nothing even gets printed??!! Then my computer crashes... soooo what else am I supposed to besides simply override paintComponent()?