This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Focus Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Focus Problem" Watch "Focus Problem" New topic
Author

Focus Problem

swetha krishnan
Greenhorn

Joined: Feb 11, 2006
Posts: 1
Hi,
I have a focus problem..

I have some tabs and when I click on submit from nth tab,a validation will be thrown [as per reqt because of required field missing] and the tab which has missing details would be shown...

the scenario where problem occurs is like this ...

when I click on submit exception is thrown for first time and moved to corresponding tab..If I come back to previous tab from where I submitted all fields are accesible...If I submit again without giving mandatory data the exception is thrown again...as said previous If I go back to the same tab from where i submitted, the field[x] in which I entered some data previously gets disabled with cursor in it.
If I select some other field [field y in this tab] I could still do it but with a cursor in it[field y] as well..i.e two cursors in same tab.....

This is a peculiar focus problem...it happens only after second time the exception is thrown...and happens with all text field ..

I tried to gain focus with focus releated methods....grabfocus() ..Requestfocus()...but no response...

Pl provide your valuable suggestions to solve this issue...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Focus Problem
 
Similar Threads
Where is the couser "focus" when im use the tab buttom
How to Return to Previous page that was request by Post Form Submitting after Login?
Caching results on a tab based web page
Focus: cant find the relevant method
How to validate text fields after enter key press