2 calendar component problems, please help!
Hi Everyone. I've got a dialog with 2 buttons (accept and cancel) and a calendar object on it. I've got 2 issues
Problem 1) It's very unresponsive. I've looked through the calendar code and found that it's calling if (!getComponentForm().isSingleFocusMode()) every time you click on a date. And since every time you click the form kills the underlying vector it has to remake the vector which contains all the components on the form every single time. This is very time consuming since the calendar has over 30 buttons it. I handled this by overriding clearFocusVectors() in my dialog to not null out those vectors. This defiantly speeds things up. Probably not the best way of doing things so if you have advice on that I'd love to hear it.
Problem 2) It won't always draw the border around the selected date. Sometimes it'll get into something weird where it draws the previously selected date. So for example if I click on the 5th. Then click on the 6th. The 5th will get a border after I click on the 6th. then I click 7th.. now 6th is highlighted. The vast majority of the time the current date (which highlights by default on start up) just stops being highlighted and no date is highlighted again.
Has anyone seen either of these issues? I'm running an android emulator not that I think that's has anything to do with it.
Thanks in advance for your replies.