Here are the 2 attachments I sent earlier : 1. http://i1175.photobucket.com/albums/r628/otto_netz/Capture1_zps36f0a2a1.jpg
2. http://i1175.photobucket.com/albums/r628/otto_netz/Capture2_zps3c8d3a2a.jpg Here's a link to the code : https://github.com/ajaybhat/ApacheWorkspace/blob/master/Luke%20Sandbox/src/org/apache/lucene/luke/ui/AnalyzersTab.java Check around line 192. On Tue, Aug 20, 2013 at 9:53 PM, Roger L. Whitcomb < [email protected]> wrote: > Hi Ajay, > > The attachments didn't come through. But, I've seen > this before. Are you trying to use a HashMap for the whole row? So > that the data for the entire TableView would have to be > List<HashMap<String,xxx>>?! Or are you trying to assign a HashMap value > to just one column? By default the column renderers for TableView show > the "toString()" result of whatever bean value gets fetched from the > column/row data. So, if you have put a HashMap in for a single column > then I expect you would get the class name, because that's what > "toString()" of a HashMap returns. It might help to see some code from > your application to see how you are setting up the data model for the > TableView. The other thing to think about is writing a custom column > renderer, if you really need multiple values in a single column (but > that's assuming that's your intent; without the screen shots or some > code it is hard to tell). > > > > HTH, > > ~Roger > > > > From: Ajay Bhat [mailto:[email protected]] > Sent: Tuesday, August 20, 2013 7:35 AM > To: [email protected] > Subject: Column entries not being added to table via HashMap > > > > Hi, > > > > I'm encountering a bit of a problem with adding an entry to > TableView.Column. The class field of the TableView below [Attachment 1] > shows the getClassName() of HashMap instead of expected result. > > > > Writing out the value of the HashMap to the std out shows me the HashMap > gives me the expected results, but it doesn't show up in TableView. > [Attachment 2] > > > > The Javadoc entry shown by Eclipse for put() is: > > String org.apache.pivot.collections.Map.put(String key, String value) > > > > Sets the value of the given key, creating a new entry or replacing the > existing value, and firing a corresponding event. > > > > I don't seem to be doing anything wrong. Can I get some help here? > > > > > > -- > > Thanks and regards, > > Ajay Bhat > > -- Thanks and regards, Ajay Bhat
