Hi, > I want to add Meter to a TableView.column,I know I have to create a class > that extends Meter and implements TableView.CellRenderer. sorry I haven't tried something like this, maybe you can find some info in the following links:
http://apache-pivot-users.399431.n3.nabble.com/TableView-Custom-Rendered-td1757203.html https://pivot.apache.org/2.0.1/docs/api/org/apache/pivot/wtk/class-use/Renderer.html > My question is in this class after defined Meter how can I display it?There > is an error if Iuse "add(meter);" in the function:public void render(~~); as seen here: https://pivot.apache.org/2.0.1/docs/api/org/apache/pivot/wtk/Renderer.html Renderers are used to customize the appearance of a component's content. you can't add components to it, you have to use it only to display contents. I think the right way should be to add your component to the table cell, and create a custom implementation of TableView.CellRenderer (inside Pivot there are some for basic cases, like TableViewCellRenderer for text labels) and from it read your component data and display as required. Of course with Meters you could have other Thread doing some work in background, so pay attention even to this ... > The second question is how can I reference this file in the BXML? maybe this could help: http://apache-pivot-users.399431.n3.nabble.com/pivot-lt-bxml-include-value-quot-abc-quot-gt-lt-bxml-include-src-quot-abc-js-quot-gt-td2240141.html Working with custom components is an area in Pivot that probably we should extend and for sure document better (I don't remember if we have at least a sample), so if you have some suggestions/improvements, tell us ... For example an interesting thing could be try to package a custom component (code and maybe even its bxml files) in a jar, and use it from an application, if someone has done something like this, please tell us ... or add an issue in jira for 2.1, could be an interesting thing to show. Keep us updated. Sandro
