JPanel trouble: replacing/ removing then adding
Im making a little game, so when you move, the character changes to move right. my problem is here, when the listener makes the call to my change() method, i didnt really know what to do and what i did do didnt work. first i just did "panel.removeAll()" then "panel.add(newImage)", but when i ran this, as soon as i hit the right arrow, the initial image does get removed but the new image does not appear. im not really sure why the JFrame can update a remove but not an add to the panel. if you want to look at the code i'll be happy to post it if you need it.

