private void updateFields(Event e) {
        String name = e == null ? 
                "Enter event name..." : e.getName();
        String loc = e == null ? 
                "Enter event location..." : e.getLocation();
        String desc = (e == null ? "Enter event description..." : 
                                   e.getDescription());
        String startDate = (e == null ? "Enter event start date..." :
                                        e.getStartDate().toString());
        String endDate = (e == null ? "Enter event end date..." :
                                      e.getEndDate().toString());
        nameField.setText(name);
        locField.setText(loc);
        descArea.setText(desc);
        startDateField.setText(startDate);
        endDateField.setText(endDate);
    }