• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ItemStateChanged Event

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
i have one lable and a combo box which has list on languages supported.
on selecting the language i need the label text should be changed according to the language selected from combo box.

i done as follow

But its not working please help me.
Thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11196
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chiru Raj:
...But its not working please help me.


Have you added an ItemListener to the combo box? It has an itemStateChange method. Your code shows some langSelectionComboItemStateChanged() method. Who calls this method? Are you sure this method is really being called?

Usually you can get notified on JComboBox changes by either an ItemListener or an ActionListener.

[Edit: Corrected typos]
[ July 22, 2008: Message edited by: Maneesh Godbole ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic