0

I'm using the Nimbus look and feel. When I have a JList and I select the first or the last item the highlight is rounded. Normally it's a square shape.

enter image description here

How do I change it to square as the other elements?

Andremoniy
  • 32,711
  • 17
  • 122
  • 230
MikkoP
  • 4,506
  • 16
  • 55
  • 105

2 Answers2

1

I had accidentally changed the BorderFactory to use Line Border with rounded corners. After removing this the cells appeared correctly.

MikkoP
  • 4,506
  • 16
  • 55
  • 105
0

You can define your own ListCellRenderer giving it the visualation you like.

Mordechai
  • 14,445
  • 1
  • 39
  • 78