A grade calculator in java gui