Just finished a tutorial on Panels including a demonstration on how to write a settings dialog.