posted 14 years ago
Below is the code that I'm working with.
I am creating (attempting) button that pops up a calendar allowing the choosing of a date. All this code works fine. however, someone suggest I use a Popup window. In my research, I came across some examples to use WindowFocusListener. So I said GREAT! I began to add this code to mine. Well it works, some what. When I have the JDialog.setModal( false), it hides the window when I click anywhere other then the calDialog() but it wont return the date; But if I set the JDialog.setModal(True); it returns the date but will not close the window when clicking outside the window (PULLING ON HAIR) I'm so close, I can feel it...
What the heck am I missing?
This is the code snippet that calls my class
This is the class that I'm working on