Java Multi-Modes Button
posted 13 years ago
You can also use addMouseListener() to get a MouseEvent for each click - this has a getClickCount() method which can be useful for detecting double clicks. As I recall you may need to look at the elapsed time between two clicks to decide if they're really "close enough" to count as a double click. There may well be a better way, but I don't know it.