Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get rid of JList border?  RSS feed

 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know how I can get rid of the grey border around a JList?

My code is:


...but I still get the grey border. Can anyone help?

Thanks,
James
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Border emptyBorder = BorderFactory.createEmptyBorder();
scrollPane.setBorder(emptyBorder);

:roll: ...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!