Have you looked at this example? http://pivot.apache.org/tutorials/table-views.html
It is written in BXML, but it should be pretty easy to figure out what is going on. If you need to understand how BXML maps to Java, take a look at this document: http://pivot.apache.org/tutorials/bxml-primer.html On Jun 29, 2012, at 9:11 AM, V SANTOSH PAVAN RAJU Bs wrote: > Hi, > > How to add rows in a TableView without Bean Class? > In my application iam supposed to create a TableView with columns to be > included dynamically based on some values. So write the Java code to create a > TableView, without using bxml file. I did not use any Bean class here. If the > Bean class was used then we can write > List<Bean> list = (ArrayList<Bean>) tableView.getTableData(); and can use > this list object to insert rows to the TableView. But as iam not using any > Bean class i wrote as: > List<?> list = tableView.getTableData(); But with this i was able to insert > rows but not contents to those rows. > > So please tell me how to insert rows to TableView without Bean class. Give me > some sample code to do it. > > -- > Thanks & Regards > B.S.V.S.Pavan Raju. > Skype: skype_pavan1 > Hyderabad.
