Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Resource Menu Exception Encountered #158
User encountered an exception while working with the code editor after a couple of hours.
Original topic: http://enigma-dev.org/forums/index.php?topic=2229.msg23513;boardseen#new
Exception originated at https://github.com/IsmAvatar/LateralGM/blob/master/org/lateralgm/components/visual/ImageToolTip.java#L46
I was now able to reproduce the issue. It only exists under the nimbus look and feel.
Steps to reproduce:
I did extensive searching through the code and I really see nothing wrong with our implementation, if you comment out calling the paint method of the tooltip parent the exception goes away and the tooltip paints the image as it does under all other look and feels. This seems to be an actual bug in the Nimbus look and feel.
changed the title from
Resource Menu Exception Encountered
Oct 28, 2014
Wonder why I was holding onto the ui to paint to it rather than super painting in the first place.
Could you please test around a bit - anything that has an image tooltip and a scrollbar, for instance (if that's a thing) to make sure it's getting rendered in the right place. Also probably try a couple look and feels.
Once you're satisfied with testing, I'd recommend just refactoring out the ttui property since it doesn't look like it's used anymore.
@IsmAvatar I tested around a bit more with literally all look and feels, even the non installed ones. Everything seems to work with just calling the super method, and not only does it work, the render is consistent with the look and feel. I further cleaned up the code in 4006d66 but I am just waiting for @JoshDreamland or anybody to confirm that it also works on Linux.