Michael Dunn wrote:the problem is here
newEvent = new NewEventForm(cg);
NewEventForm is a modal dialog, so the requestFocus and setVisible lines are not executed until the dialog closes,
then, when closed, setVisible(true) is executed.
remove those requestFocus and setVisible lines and it should work OK.
forgot to add that NewEventForm contains a setVisible(true) in it's constructor