Kristian Kraljić You may compare programming with poetry,
a harmonic script is a piece of creativity which will last forever.
- Kristian Kraljić

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.

Read the rest of this entry »

» Leave a Comment «