JMonthBox is a month selection component combining a combo box and a rolling spinner. One can obtain the currently selected month through the getSelectedMonth or getSelectedMonthNumber methods. Alternatively, use the addMonthChangeListener to get notifications of selection changes. The month names can be either those associated with the current locale or custom names.
JMonthBox is a JavaBean component so you can add it to the NetBeans Swing components pallette and use it through the GUI builder. Get the JMonthBox NetBeans project including the source files, compiled jar and API javadocs from here.
Friday, January 25, 2008
The month selection component JMonthBox
Sunday, January 13, 2008
The link label component JLinkLabel
JLinkLabel is a web link-like Swing label component. It allows customization of the link color, the hover color when the cursor is over the link and the press color when the link is pressed. A hand cursor appears when the cursor moves over the link to indicate that it can be pressed.
JLinkLabel is a JavaBean component so you can add it to the NetBeans Swing components pallette and use it through the GUI builder. Get the JLinkLabel NetBeans project including the source files, compiled jar and API javadocs from here.
Thursday, January 3, 2008
The program status bar component JStatusPanel
JStatusPanel is a Swing status bar component that consists of a message label, status label and a status indicator. Additional Swing components can be added or removed as required. The text of the message and status labels can optionally appear for a few seconds and then disappear.
JStatusPanel is a JavaBean component so you can add it to the NetBeans Swing components pallette and use it through the GUI builder. Get the JStatusPanel NetBeans project including the source files, compiled jar and API javadocs from here.
Tuesday, January 1, 2008
Programmatically compile and execute java code with RunnerPad

One of my favorite articles from JavaWorld was called "Make a statement with javac!" and described code that programmatically compiled and executed Java statements. Since 2002 when this article was written the relevant APIs have changed. Java SE 6 supports this functionality through the JavaCompiler and ToolProvider classes of the javax.tools package. With these in mind I created RunnerPad, a Swing program that allows users to quickly write, compile and run Java statements. RunnerPad can be downloaded as a NetBeans project from here.