• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDatechooser triggers Jcombobox's Action  RSS feed

 
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
Sheriff
Posts: 53774
128
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!