File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "focus problem" Watch "focus problem" New topic

focus problem

Suresh Poosapati

Joined: Feb 24, 2010
Posts: 3
when i execute i program there is no focus.but if i opened other window and come back to my program output it is showing focus.what may be the problem?

can anybody suggest solutions?
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 650
There's not much here to go on. Are you creating a Swing application? Does the application display? What happens when you click on a component in the application window (like a text field or a button) - do they respond?

Try creating a simple application and see if it shows the same problem. If so, then you can provide that application to us so we can see what you're talking about.
I agree. Here's the link:
subject: focus problem
jQuery in Action, 3rd edition