title: JLabel Width Independent from Text Length
body: <p>I have a JLabel in a horizontally re-sizable JPanel. The JLabel auto re-sizes its width to fit the JPanel. If I insert a long line of text (such as "aaaaaaaaaaaaaaaaaaaaaaaa") the JLabel doesn't truncate the text. Instead, the width re-sizes to fit the text, causing also an ugly re-sizing of the JPanel.<br><br>
  Instead, I want my text to be truncated with an elipse (...). The JLabel width must not inherit from the text's length but only from the JPanel width.<br><br></p>