JProgressBar text overflow

My program writes text in a JProgressBar. The problem is the text is wider than the JProgressBar’s width. I have already changed the JProgressBar’s height to be able to write the text on two lines …