A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
getting string from textarea in scala
Joined: Feb 08, 2011
Feb 08, 2011 16:18:05
I'm starting out learning how to use scala, but I'm finding the transition very tricky.
I'm writing a simple application where I enter text in a
and when I click "Show" it shows the text within the
within the console.
all I need to do was to use ".getText()" to the the text from a
How can I do this in scala? Or is it even possible?
Joined: Sep 08, 2007
Feb 08, 2011 22:46:51
Can you provide the code you are trying?
Mohamed Sanaulla |
Jesper de Jong
Joined: Aug 16, 2005
Feb 09, 2011 13:03:44
If it's still a
, then you can do exactly the same in Scala as you did in Java - just call .getText() on it to get the text.
Java Beginners FAQ
JavaRanch SCJP FAQ
The Java Tutorial
Java SE 7 API documentation
- My blog about Scala
Joined: Jun 07, 2007
Feb 10, 2011 15:14:06
If you are using Scala swing's '
, you can use 'text' method on the
to get the text.
- Marimuthu Madasamy
I agree. Here's the link:
subject: getting string from textarea in scala
Scale or Clojure
cant figure this out
String to integer??
questions about Process and Runtime()
How to use hibernate in scala
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014