
I have a JDialog which displays the calendar [from 2010-2020], i created this in a different class. In this calendar each day from 1-31 is placed in corresponding cells of a 5X6 JTable. Now i need to get which day is clicked by the user from another class which calls this calander class. can interface solve this problem. If yes then how. pls help me

Please visit the following link:
http://www.roseindia.net/tutorial/java/swing/datePicker.html

thanks very much, this is the actual thing i need :)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.