wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Please help me with this code... I don't know what I'm missing... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Please help me with this code... I don Watch "Please help me with this code... I don New topic
Author

Please help me with this code... I don't know what I'm missing...

Ivan Valderrama
Greenhorn

Joined: Mar 16, 2003
Posts: 2
[ edited to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ March 16, 2003: Message edited by: Dirk Schreckmann ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Hello Ivan, welcome to JavaRanch. What do you want this code to do? Compile? Run? Or What? It would be great if you could place your code between UBB code tags to preserve indentation (use spaces not tabs).


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
When asking folks a question, taking a minute to first explain things to your Cardboard Analyst and to think about Asking a Good Question is time well spent.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Hey Dirk! You edited all that code? You're too good to these guys!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The requestFocus method of TextField does not take any arguments. Take a look at The TextField Class Documentation.
[ March 16, 2003: Message edited by: Dirk Schreckmann ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Dirk Schreckmann:
When asking folks a question, taking a minute to first explain things to your Cardboard Analyst and to think about Asking a Good Question is time well spent.

Is there one for answering stupidquestions too?
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Hey Dirk! You edited all that code? You're too good to these guys!
JBuilder 8 makes it very easy - just highlight all and press tab.
The difficult part is waiting for the beastly program to get started.
[ March 16, 2003: Message edited by: Dirk Schreckmann ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Dirk Schreckmann:
The requestFocus method of TextField does not take any arguments. Take a look at The TextField Class Documentation.

Hey, I was holding that back until Ivan played ball Dirk!
[ corrected my quoted typo -ds ]
[ March 16, 2003: Message edited by: Dirk Schreckmann ]
[ March 16, 2003: Message edited by: Barry Gaunt ]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Is there one for answering stupid questions too?
When answering questions of those that have hit a wall and perhaps haven't yet spent a quality moment explaining things to a Cardboard Analyst and thinking about Asking a Good Question before posting out of frustration, first ask yourself, "Am I really this bored? Is my life really so lacking of a more interesting hobby? Am I using this opportunity to procrastinate the completion of something else?" After qualifying a "yes" answer to each question, then take a deep breath and help the frustrated programmer out.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I'm going to print that one out, enlarge it, and stick it next to my desk at work. Love it!
Ivan Valderrama
Greenhorn

Joined: Mar 16, 2003
Posts: 2
Sorry guys, I'm new to this forum... And also a beginner to Java. At the moment I am self studying Java. Please forgive me.
The problem was that I could not compile the code. So, what was I missing?
Regards
Ivan
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Welcome back Ivan
Read what Dirk wrote here:
Originally posted by Dirk Schreckmann:
The requestFocus method of TextField does not take any arguments. Take a look at The TextField Class Documentation.

You must fix the call of the requestFocus method. You have given an empty string as an argument. You should call the method with no parameters.
Kathy Sierra
Cowgirl and Author
Ranch Hand

Joined: Oct 10, 2002
Posts: 1572
Originally posted by Dirk Schreckmann:
When asking folks a question, taking a minute to first explain things to your Cardboard Analyst and to think about Asking a Good Question is time well spent.

I love the CardboardAnalyst, but you can kill two birds with one stone if you use a LIVE PET instead. Clover, my dog, knows polymorphism as a result of countless hours listening to my code and/or design problems. And let's not forget Bert the sheep, who devoured Thinking In Java start to finish back in '98. (You'll find Bert's picture at the Bunkhouse)
That way, you eventually end up with *almost* free labor. (Sure, the lack of opposable thumbs makes their mouse and keyboard skills less than ideal, but at least they can respond with a working knowledge of the language. We've started the donkey on J2EE Design Patterns).
cheers,
Kathy
"never do yourself what your Dog will do for kibbles."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help me with this code... I don't know what I'm missing...
 
Similar Threads
Using External Data(need help before Monday)
Applet Login via database
Trying to figure out the "This" keyword
help arranging layout of TextField
Applet Login via database