Vladimir Lhotak suggested adding:
myFrame.invalidate(); myFrame.validate(); and this fixes the problem.
Code at: MuteButtons2.java