private void changeButtonClicked()
{
if (schedulePanel == null)
{
schedulePanel = new TaskToSchedulePanel(taskName);
scheduleDlg = new GenericDialog(Utilities.getFrame(this), schedulePanel);
Utilities.centerGoldenMean(scheduleDlg, Utilities.getParentDialog(this));
scheduleDlg.setModal(true);
}
scheduleDlg.setVisible(true);