Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.awt.List uses ActionEvent for double-click?

843807Dec 17 2001 — edited Dec 19 2001
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2002
Added on Dec 17 2001
1 comment
378 views