[SWINGX-1527] JXTreeTable tooltips not shown after expand/collapse tree Created: 02/Oct/12  Updated: 05/Oct/12  Resolved: 05/Oct/12

Status: Resolved
Project: swingx
Component/s: TreeTable
Affects Version/s: 1.6.4
Fix Version/s: 1.6.5

Type: Bug Priority: Minor
Reporter: oneandonlyluppy Assignee: kleopatra
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Archlinux
Windows 7
Java 1.7.0_07


Attachments: Java Source File TreeTableToolTipTest.java    

 Description   

Tooltips are shown after expanding or collapsing tree and not moving the mouse out of the bounds of the rows in the table

Exact steps to reproduce using both a linux and windows environment and java 1.7.0_07
I have attached a small runnable example

1. Hold mouse over any cell and the tooltip is displayed
2. Click the tree icon so the tree collapses and then click again so the tree expands again.
3. Now without leaving the bounds of the table (not moving the mouse out of the rows) move the mouse to any cell, the tooltip no longer gets displayed
4. Move the mouse out of the table bounds to anywhere on the screen
5. Move mouse back over the table, tooltips are now displayed again

I stress that this only happens when after the tree expandsion/collapse click the mouse must not move off any row otherwise the tooltips work again correctly

Have also tried using ToolTipHighlighter and get the same results



 Comments   
Comment by kleopatra [ 02/Oct/12 ]

thanks for filing (somehow it seems to be known - as documented in JXTreeTableVisualCheck.interactiveHierarchicalToolTip - but got forgotten)

Need to dig a bit to find the reason.

Jeanette

Comment by kleopatra [ 02/Oct/12 ]
  • added/commented tests to expose)
  • fixed (loosely related) issue (fixed tooltip on treeTable not propagated to the rendering tree)
Comment by kleopatra [ 05/Oct/12 ]

The problem is TreeTableHacker4/5: they pass all pressed/clicked/released events in the handle area to the tree plus disabling processMouseMotion for the table. Re-enabling isn't guaranteed, need to find a way to do so without sacrificing the hacked bugs ...

Not overly enthusiastic, though: piling hack-on-hack in a mile-high pile is .. most probably introducing other bugs somewhere else.

Comment by kleopatra [ 05/Oct/12 ]

"fixed" (aka: yet another hack on top of the pile as of revision #4256

  • hacked by hacking TreeTableHackerExt4
  • was: when routing a mouseEvent to the rendering tree, mouseMotionProcessing on the table was disabled without reliably enabling it again

Please let me know how it goes

Thanks
Jeanette

Generated at Tue Jan 17 17:28:09 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.