• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ItemStateChanged Event

 
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic