File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getText() question

 
Mike Brown
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope I am not exceeding my limit of questions here. I appreciate the help so much. This will be my last question tonight I promise.Can somebody tell me where I went wrong on this. I just want to take the input from the textbox and display it with the paint method when the user clicks the button.

I edited your code to include the UBB Code Tags to make your code easier to read.
[ October 26, 2003: Message edited by: Gregg Bolinger ]
 
Paul Stevens
Ranch Hand
Posts: 2823
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You set the text field value to a string at compile time. It's value at that time was an empty string. Move getting the value to your action performed method.
There are no limits to questions.
 
Mike Brown
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul, I remember now that strings are immutable so the way I had it couldnt possibly work.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope I am not exceeding my limit of questions here.
That can never happen.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic