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?
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....