View Full Version : Double Click in Panel title

6 Aug 2009, 3:07 PM
I have a border layout and I want the ability to double click in the center panel title bar and have all the other panels collapse. When you double click again, everything comes back to how it was. This is how panels work in Eclipse ( the IDE ). I noticed that Panel does not have a double click event. I do see that the title can have the ability to be clicked when you make it collapsible. My thought was to catch a double click in the panel title bar and collapse the other panels. I was unable to figure out a way. I thought I probably have to subclass the panel class. Seems this might be a nice option to add to the code base. I was unable to find anything similar while searching the forums and the Internet. Any ideas?

6 Aug 2009, 9:00 PM
After they are rendered, Panels have various DOM elements to which you can add listeners


A Frequent Question...