Jlabel multiline with html : I have a jlabel that I would like to contain a text that can go over multiple lines, and resizes if the window changes shape.

I've looked this up and most people seem to recommend wrapping the jlabel text in html. This however does not make new lines for me.
my jlabel is located in a Jpanel and I suspect that the problem may be that my Jpanel has misconfigured its border. and so the jlabel text just continues beyond the jpanel border.

here is how the jlabel looks inside the status panel
https://imgur.com/a/X19xPsu

here are the settings of my Jpanel:
```
private final JPanel statusPanel = new JPanel(new FlowLayout());
statusPanel.setBackground(Color.white);
        statusPanel.add(latestOrdreLabel);
        this.add(statusPanel, new GridBagConstraints(0, 0, 6, 1, 1.0, 1.0
                , GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(2, 2, 2, 2), 0, 0));
```
then my jlabel is set up like this:

```
private final JLabel latestOrdreLabelResult = new JLabel();

String latestOrdreStatus = getBean().getLatestOrdreStatus(etelOrderInterface.getOrderId());

       latestOrdreLabelResult.setText("<html>"+latestOrdreStatus+"</html>");

        statusPanel.add(latestOrdreLabelResult);
```