Monthly Archives: August 2010

Simple dynamic ToolTip text for JComponents

If you’re looking for a simple way to show a ToolTip on a JComponent based on a condition, you can do it by overriding the getToolTipText method. By default the component will not show a ToolTip unless it is registered … Continue reading

Posted in Programming | Tagged , | 1 Comment

Formatting a Rhino JavaScript Date object

I’m working on a project which involves embedding JavaScript within Java. To make life easier for the the person creating the JavaScript, I added some syntactic sugar where the JavaScript way was cumbersome, complicated or did not exist. One of … Continue reading

Posted in Programming | Tagged , , | 4 Comments