I have child dialog for choosing dates which is called from parent UI: This dialog implements PropertyChangeListener and there is a corresponding propertyChange method which sets new values for the dates.
Here is the code I have in parent UI to call this dialog: Date startDate; Date endDate; ChooseDatesDialog datesChoice = new ChooseDatesDialog(); ClientUtils.centerWindowOnTheScreen(datesChoice,220,160); datesChoice.setTitle("Choosing dates"); datesChoice.setVisible(true); How do I capture the event when date values are set within child dialog in this parent UI? Thanks, Sabina
My parent UI extends JPanel. I cannot apply addPropertyChangeListener(this); to it. I can probably set parent UI to implement PropertyChangeListener and add propertyChange method to it. Then again I already have PropertyChangeListener added to Date buttons within my child dialog. Looks like I need to change the whole design
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Gift giving made easy with the permaculture playing cards