Home
Power through technology
Use a FileFilter to delete old files

This snippet shows how a java.io.FileFilter can be used to do something useful like delete all files older than a certain date in a directory. It uses the last modified date of the files in conjunction with the java.io.File listFiles() method to get a list of files to delete.

Last Updated on Thursday, 17 March 2011 09:35
Read more...
 
Online books - Fact or fiction

As service-oriented computing and multi-functional handheld devices become more prevalent they bring with them fundamental changes to the way we read books and assimilate information. With the current meteoric rise in the consumption of of e-books[1] it is difficult not to worry about what will become of the humble paperback.

Last Updated on Saturday, 19 March 2011 10:38
Read more...
 
Center a dialog or window on the screen in Swing

This very small snippet shows how to center a dialog or a window on the screen in Swing. Note that Dialog is a subclass of Window so this code works for both.

Last Updated on Sunday, 19 April 2009 22:48
Read more...
 
The two faces of the java.util.Date class

This article discusses the dual nature of the java.util.Date class. It explains why what you get out of the Date class is not always the same as what you put in.

Last Updated on Thursday, 16 April 2009 21:55
Read more...
 
Create a decent progress dialog in Swing

This snippet demonstrates how to easily create a customisable, modal progress dialog with a Cancel button in Swing.

Progrss dialog example

Last Updated on Sunday, 19 April 2009 10:13
Read more...
 
<< Start < Prev 1 2 3 Next > End >>

Page 1 of 3
Which is the best XML DOM library/API