This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes help me!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "help me!!" Watch "help me!!" New topic
Author

help me!!

Yanxin Zhao
Ranch Hand

Joined: May 05, 2004
Posts: 65
Hi: everyone.
I do not know why my code can not work? please help me!! thanks.
Stefan Krompass
Ranch Hand

Joined: Apr 29, 2004
Posts: 75
Hi,

what do you mean by "my code can not work"? Does it compile? When not, what messages are displayed by the compiler? Can you execute your program? When this is possible: How does it behave and how do you want your program to behave?

Stefan
Yanxin Zhao
Ranch Hand

Joined: May 05, 2004
Posts: 65
Hi: Stefan
thanks for your reply. my code have no mistake in compile time. I want to print the text which display in JTextField when you click JButton. but it can not work when I click Button. so....
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Looks like your ActionListener wasn't being passed correctly

try this

Yanxin Zhao
Ranch Hand

Joined: May 05, 2004
Posts: 65
Thanks so much, Michael.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: help me!!
 
Similar Threads
GUI
how to get JTextField value from another class
multiple views in swing(urgent help needed)
Accessing dynamic Components
Question about ActionListener