a) wE or e, it should not matter as long as when you access the variable inside the method you use the appropriate name b) Read the API for JFrame, you are better off using setDefaultCloseOperation...