i'm programming an app where labels are having their text changed alot.

sometimes the text will not allways fit on in the space, so will be cut off.

clicking on the edge of the screen will make java redraw the GUI.

is there a command i can use to make it do this automatiically after i've changed the labels?