Generally, the best way to get help on our forum is to provide as much information as possible. Simply posting 300+ lines of code will cause most folks I know to simply skip right over this, as it's too much work. Not only would they have to solve your problem, they'd have to work pretty hard to figure out what your problem is.
Does this compile? do you get error messages? Can you limit the code you post to the relevant segment?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
sorry fred, from next time I will keep your words in mind.
And for this problem it is solved,my panel was not getting focus,just tried to get it using requestfocus() method and it is solved..
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive tiny ad: