File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes .transferFocus() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark ".transferFocus()" Watch ".transferFocus()" New topic


Candy Bortniker
Ranch Hand

Joined: Mar 17, 2003
Posts: 123
I am wondering what this code should be doing. Here is the code:

I know I am getting to this code because "Good Limited Text Entered" is printing out but what I am expecting to see from GrpAcctNumber.transferFocus (); isn't happening. Do I need something in the ()?
[ March 10, 2004: Message edited by: Marilyn de Queiroz ]
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
What kind of object is GrpAcctNumber?

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Candy Bortniker
Ranch Hand

Joined: Mar 17, 2003
Posts: 123
It is a LimitedTextContainer object from a class I created.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I suspect that LimitedTextContainer inherits this method from another class. You can find information about the transferFocus() method by looking up the class that contains it in the Java API docs. Start by finding the class that LimitedTextContainer extends. The docs for this class will have a link to information about the transferFocus() method. Use the "Find in Page" feature of your browser to quickly find this link.

Java API Documentation
The Java Tutorial
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
If it's not clear yet, the difficulty in trying to answer your question is that most Ranchers likely have little idea what a LimitedTextContainer is. Google doesn't even know.
Regarding your question whether you "need something in the ()", it depends. The somethings in the () are also referred to as method arguments.
I'm afraid I haven't a good clue as to what the transferFocus method does or what a LimitedTextContainer might be. Where did you get this LimitedTextContainer class?

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: .transferFocus()
It's not a secret anymore!