A BetterGlassPane implementation for the JRootPane
by Kristian Kraljic, January 1, 2016
Happy New Year 2016! 2016 is quite a cool year, because it’s 211-25, which is quite neat! One of my New Year’s resolutions for this year is to release more on this blog, so let’s get it going! The marathon continues, but this is the second to last post already.
I’ve implemented a BetterGlassPane
to replace the default glass pane of JRootPane
objects in Java. In contrast to the default (JPanel
) glass pane, this BetterGlassPane
handles any mouse events, without interrupting the controls underneath the glass pane (in the content pane of the root pane). Also cursors are handled as if the glass pane was invisible.
You’ll find details about the code and usage examples on my GitHub profile at the following repository: https://github.com/kristian/better-glass-pane. Feel free to use the BetterGlassPane and share your feedback right here.