| || |
List_get_item_coord has different coordinates if an item is in a JTree
I have an item in a JTree. I use list_get_item_coord to get its coordinates, and then use those coordinates to right click and open up a popup menu. However, if the root object or the object itself is expanded, a scrollbar at the bottom appears, yet it is not recognized as a scroll so I can't control it. When the scrollbar is present, the list_get_item_coord will not give the correct coord and so the popup won't open. Any help? If there is a way for me to move the scroll entirely to the left it would solve it. scrollRowToVisible with row=0 won't completely do it.