branch develop updated (2c0216b -> a254d3b)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository jaxx. See http://git.nuiton.org/jaxx.git from 2c0216b fixes #3601 [TABLE FILTER] uncheck the "all" action when the user starts typing in the search field new a254d3b table filter: add change listener on table column model to update the header The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit a254d3b9db23d4ff95fd8dbe179bb9015c6353ef Author: Kevin Morin <morin@codelutin.com> Date: Fri Dec 12 13:47:30 2014 +0100 table filter: add change listener on table column model to update the header Summary of changes: .../runtime/swing/table/filter/TableRowFilterSupport.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository jaxx. See http://git.nuiton.org/jaxx.git commit a254d3b9db23d4ff95fd8dbe179bb9015c6353ef Author: Kevin Morin <morin@codelutin.com> Date: Fri Dec 12 13:47:30 2014 +0100 table filter: add change listener on table column model to update the header --- .../runtime/swing/table/filter/TableRowFilterSupport.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jaxx-widgets/src/main/java/jaxx/runtime/swing/table/filter/TableRowFilterSupport.java b/jaxx-widgets/src/main/java/jaxx/runtime/swing/table/filter/TableRowFilterSupport.java index f98080e..a050ca9 100644 --- a/jaxx-widgets/src/main/java/jaxx/runtime/swing/table/filter/TableRowFilterSupport.java +++ b/jaxx-widgets/src/main/java/jaxx/runtime/swing/table/filter/TableRowFilterSupport.java @@ -144,7 +144,7 @@ public final class TableRowFilterSupport { private void setupHeaderRenderers( TableModel newModel, boolean fullSetup ) { - JTable table = filter.getTable(); + final JTable table = filter.getTable(); FilterTableHeaderRenderer headerRenderer = new FilterTableHeaderRenderer(filter); filter.modelChanged( newModel ); @@ -155,16 +155,16 @@ public final class TableRowFilterSupport { if ( !fullSetup ) return; - table.addPropertyChangeListener("model", new PropertyChangeListener() { + PropertyChangeListener listener = new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { - setupHeaderRenderers( (TableModel) e.getNewValue(), false ); + setupHeaderRenderers(table.getModel(), false); } - }); - + }; + table.addPropertyChangeListener("model", listener); + table.addPropertyChangeListener("columnModel", listener); } - } -- To stop receiving notification emails like this one, please contact nuiton.org SCM administrator <admin+scm@nuiton.org>.
participants (1)
-
nuiton.org scm