Do you know what happens when you add a KeyListener to JFrame to capture global keystrokes? Nothing.
Much to my frustration, I discovered recently that KeyEvents are not bubbled up through the JComponent hierarchy by default. The only component that consumes the event is the one currently focused.… Read the rest
Through the necessity to externalize GUI messages in an application that I have been working on, I have come up with a remarkably simple and clean approach for loading key:value pairs from an external XML file or stream. The Class also transparently allows for String interpolation, should it be required.… Read the rest
Java 7 is now officially available as of July 28th 2011. The intent of this blog entry is to introduce the new language features. For further details, consult the Java 7 SDK.
Underscores in Numeric Literals
Strings in Switch Statements
Type Inference for Generic Instance Creation
Improved Exception Handling
Improved Compiler Warnings and Errors When Using Non-Reifiable Formal Parameters with Varargs Methods
[Official Docs] Long awaited, Java now allows for integral literals (byte, short, int, and long) to be expressed in binary.… Read the rest