Prevent the default action
Extract the setup code
Add setModel and pick up the username (Listing15.23,24,25,26,27)