Call the following two methods (in this order):
invalidate();
validate();
if your class is a subclass of the container (i.e. if YourClass extends JFrame, etc)
you could perhaps create a method redraw consisting of those two methods and call it whenever you want to refresh the screen.
else, you can just call the methods from the instance of the JContainer object.
eg.
frameName.invalidate();
frameName.validate();