I have a JPanel with a paintComponent() function. I\'ll call it once, then when the user clicks a different JButton, I\'ll set some fl
I would suggest calling revalidate(); instead of repaint(). revalidate() needs to be called when changing the size / layout or when you add/remove objects onto your jpanel and will update all of it's children. From what I can tell, you're still using the same paint object tho but changing it's layout.