posted 19 years ago
I'm fine tuning a class that automatically closes a dialog if the user doesn't respond. I got it to work, but it seems awfully klutzy, so thought I'd see if anyone had any suggestions on ways to improve it. The code below is an extract from the class, but demonstrates the core functionality. For example, to display a confirmation dialog, you would construct the AutoclosePane object, then call confirmOrTimeout. Does anyone see any weaknesses in this code, or a way to make it shorter?