Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: [Advanced-java] JComboBox and ActionListener


  • From: sbr@xxxxxxxxxxx (Sybille Breunig)
  • Subject: Fw: [Advanced-java] JComboBox and ActionListener
  • Date: Wed, 23 Jan 2002 14:52:41 +0100

----- Original Message -----
From: "Sybille Breunig" <sbr@xxxxxxxxxxx>
To: "Christian Ribeaud" <Christian.Ribeaud@xxxxxxxxxxxx>
Sent: Wednesday, January 23, 2002 2:52 PM
Subject: Re: [Advanced-java] JComboBox and ActionListener


> The following is from the JDK 1.3 Spec :
> - Adds an ItemListener. aListener will receive an event when the selected
> item changes.
> - Adds an ActionListener. The listener will receive an action event the
user
> finishes making a selection.
>
> so the ItemEvent is fired only when the selected value changes, whereas
the
> ActionEvent is also fired when you select the same Item again.
>
> Maybe there`s some mistake in your code. I can't determine one within the
> snippets you sent.
>
> Sybille
>
> ----- Original Message -----
> From: "Christian Ribeaud" <Christian.Ribeaud@xxxxxxxxxxxx>
> To: <advanced-java@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Wednesday, January 23, 2002 2:36 PM
> Subject: Re: [Advanced-java] JComboBox and ActionListener
>
>
> > What is exactly the difference between ItemListener and ActionListener
> > in
> > the JComboBox? I remember of having seen JComboBox examples where I
> > could catch
> > an ActionListener by changing the selected item in a JComboBox.
> >
> > christian
> >
> > > Try the ItemListener
> > >
> > > Hope this helps
> > > Sybille
> > _______________________________________________
> > Advanced-java mailing list
> > Advanced-java@xxxxxxxxxxxxxxxxxxxxxx
> > http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
> >
>