Index

updating a component in already visible Container:
frame.getContentPane().validate();
frame.getContentPane().repaint();