java.awt.List uses ActionEvent for double-click?
843807Dec 17 2001 — edited Dec 19 2001I read that that ActionListner should be used for the java.awt.List class in order to interpret double clicks? I have implemented this method and when an item is double clicked the code inside actionPerformed method gets executed twice? here's the code, a single click will not fire the action event here, any ideas on why I am getting two EditView frames?
public void actionPerformed( ActionEvent ae ) {
Object source = ae.getSource();
if ( source == this.day ) {
new EditView( new Connector(), rows.elementAt( this.day.getSelectedIndex() ), "Edit Event" );
} //if
} //actionPerformed