• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDatechooser triggers Jcombobox's Action

 
rayan alex
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have JDateChooser component and few Jcomboboxes in my swing application. Im having following issue.
When I select some random element from Jcombo and then select date from Jdatechooser, changes the previously selected jcombobox element to element 1.

 
Campbell Ritchie
Marshal
Posts: 52549
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using a low‑level Listener? Can’t you use one of Toedter’s methods to get the selected date? What is in the key pressed method? Why are you not using camel‑case for your identifiers?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!