Could I suggest to override the SetToolTipLocation() method for the JMultiLineToolTip so that the tooltip will not extend below the bottom limit of the visible desktop? (the tooltip will not display completely, not ably for rows in the Connections table).
The default computed location just attempts to position the tooltip below the mouse cursor position, and adjusts it above to make it fit in the physical screen, but not on the visible desktop.
With my bottom desktop toolbar, this hides about 4 lines of the tooltip text.
One suggestion would be that if the mouse is at or below the middle of the screen height, then the location should be set above the mouse cursor rather then below it, keeping the adjustment to avoid it to go above the top of the physical screen.
Also, tooltips for table rows may better be aligned horizontally with the hovered table cell for which the tooltip is displayed. Clicking on the tooltip should have the same effect as clicking on the table cell, after the tooltip is closed, if the cell is editable and the tooltip does not spans on several lines (for example when renaming files). If the tooltip can fit on the cell space, and the cell is fully within the visible desktop area, then there's no need to move it above or below the mouse cursor. |