Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Two different ListViews from same data source?  RSS feed

 
Matt Novak
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to create two ListViews with same "people" inside, but first would have names and secound would have addresses.

I made the first list and it works OK:



And here's the override from class Person that returns name:


I can't create two overrides for toString...so how can I use SAME "array" to draw additional ListView with addresses? :-/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!