I want to create a dialog that contains some kind of text element (JLabel/JTextArea etc) that is multi lined and wrap the words. I want the dialog to be of a fixed width but
I think this is what you want:
JLabel label = new JLabel("Lots of text here..."); // add the label to some Container.
This will restrict the JLabel to being 200 pixels wide and automatically adjust the height to fit the text.