Cancel Button Functionality in GUI
and coding conventions in java