![enter image description here](https://i.stack.imgur.com/4ckzp.png)

Hi i am trying to make java desktop application where i am using `JLabel` I wrote some test on `JLabel` I want to set text from the top and I am using multiple line in `JLabel` I want to set different different color for every line.

Here is my code:

```
JLabel label = new JLabel("<html>Case &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CaseNum<br>Party1<br>Party2</html>");

```

How can I achieve this?