The Artima Developer Community
Sponsored Link

Java Answers Forum
Casting

2 replies on 1 page. Most recent reply: Jul 25, 2003 12:01 PM by Mike

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Mike

Posts: 4
Nickname: mhirst
Registered: Jul, 2003

Casting Posted: Jul 25, 2003 10:31 AM
Reply to this message Reply
Advertisement
I need to cast a jtext field swing component to a string variable...How do I do this?


Greg Lehane

Posts: 33
Nickname: glehane
Registered: Jun, 2003

Re: Casting Posted: Jul 25, 2003 11:11 AM
Reply to this message Reply
Would I be right in assuming you want to get the text from the textfield? If so, just call its getText() method. It will return an object of type String.

Apologies if this is not what you mean!

=- Greg

Mike

Posts: 4
Nickname: mhirst
Registered: Jul, 2003

Re: Casting Posted: Jul 25, 2003 12:01 PM
Reply to this message Reply
Greg

Thanks this is exactly what i meant

Flat View: This topic has 2 replies on 1 page
Topic: java parse html Previous Topic   Next Topic Topic: how to invoke excel8.0 from Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use