• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Displaying JPanel in a Jlist or JTable

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to display a JPanel in a JList or JTable? I am asked to
display different sorts of information as if it were one row. Any suggestions?

Thanks.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>Is it possible to display a JPanel in a JList

create your own ListCellRenderer, extending JPanel instead of JLabel

search for "extends JPanel implements ListCellRenderer"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic