[ https://issues.apache.org/jira/browse/PIVOT-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080089#comment-13080089 ]
Sandro Martini commented on PIVOT-694: -------------------------------------- >This issue has nothing to do with repaint() - it only applies to setListData() >and clear(). Probably I have not been so clear ... after your fix and my last commits, if you run Pivot964.java you can see that many components in the test application have two versions: one with listDataKey/xxxdataKey set and another not, in the same row. Clicking the "Clear Data" button you can see that all components with the xxxDataKey set should have been emptied, but: - without force a repaint() in (test application) code this is not achieved, so the question to you:is it right to force a repaint in my code there ? For what I've been looking in other Pivot sources seems yes ... - even with forcing a repaint, in some components I don't see the "empty" content in them, and this is the remaining part to fix for this ticket. Maybe this is a little "corner case", but I'd prefer to finish fixing it for the 2.0.1, do you agree ? In my previous comment here I was trying to write a mini-how-to on how to make this use case work in user applications, could be useful to someone until I'll move Pivot694* test files in a more useful names, all here. Bye > Improvement in ListButton clear() method > ---------------------------------------- > > Key: PIVOT-694 > URL: https://issues.apache.org/jira/browse/PIVOT-694 > Project: Pivot > Issue Type: Improvement > Components: wtk > Affects Versions: 2.0 > Environment: Pivot 2.0 > Win 7 > Reporter: Luiz Gustavo Stábile de Souza > Assignee: Greg Brown > Priority: Minor > Fix For: 2.0.1 > > Attachments: listButton problem.png > > > I'm having problems with ListButton. > When I try to clean a ListButton the last text selected before remains > selected, even with no item in the ListData of the ListButton. > I tried listButton.clear() and listButton.getListData().clear(), but with > none of this I can scape the problem. > I debugged the application, and the listData of the ListButton is clear after > getListData().clear(), but the last selected text remains showing. > See attached image. > Perhaps listButton.setButtonData(null) should be performed in > ListButton#clear(). > Cheers -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira