This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have MDI form with few Internal Frames. I want to set request focus to one of the text fields when Internal frame is opening. I tried to use requestFocus() method and requestFocusInWindow() method.
Non of them worked for me. I have this problem only with JInternal Frames. I called both methods on constructor.
Requests that this Component gets the input focus. Refer to Component.requestFocus() for a complete description of this method.
Note that the use of this method is discouraged because its behavior is platform dependent. Instead we recommend the use of requestFocusInWindow(). If you would like more information on focus, see How to Use the Focus Subsystem, a section in The Java Tutorial.
@m Korbel: Please don't use bold text throughout your post, it comes across as shouting. If you are quoting from a source and want to make it stand out then you could wrap the quoted text in quote tags or use italics.