added basic swing callback handlers.