• Post Reply Bookmark Topic Watch Topic
  • New Topic

Updating jList with Object after adding (solved)  RSS feed

 
Cillian O'Mook
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[edit: Solved the problem, this can be deleted)

Hello again guys, so this is the scenario:


I have a list jList1. I want this to be a list of Songs (another object).

When I add a song to jList1, I want jList1 to display the song object. Simple eh?
The list should initially be blank.

mt contains the method addSong(x,x,x), this works fine.

My code:


Where I'm going wrong just displaying the tempSong on the jList once jButton5 is clicked, the jTextFields are cleared fine, and the tempSong is added to mt.addSong(x,x,x) fine.

Any help appreciated..
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please tell us what the solution was.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!