Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Using ComboBoxTableCell with custom class

Chris Whoever
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a problem using ComboBoxTableCells with custom classes in my code. The table/table column definitions:

I setup a Facade class to avoid troubles when ComboBoxTableCell calls toString to make the text readable instead of showing a standard string output of the whole class.

I assign a ObservableList like this to the table and setup the cell factories like this:

Now my problem is that:

1. the data for the metadataColumn is shown as a huge string showing
the contents of the class, whereas the data for geometryColumn are
shown in a human readable way
2. the observable list is not updated

Any hints, ideas, suggestions, ... are highly appreciated!

What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!