Is there a way I can detect a double-click event on a JTabbedPane?
Here's what I'm trying:
_tabs.addStateListener(handleTabClick);
_tabs.addEventListener(MouseEvent.DOUBLE_CLICK,handleTabDoubleClick);
The single click handler works--but the double click handler does not. Here's the handler:
public function handleTabDoubleClick(e : MouseEvent)
{
var pageName : String;
pageName = _tabs.getTitleAt(_tabs.getSelectedIndex());
var pane : JOptionPane = JOptionPane.showInputDialog("Edit Page","Page Name:",null,pageName);
}
Any help appreciated.
Thanks!