The Artima Developer Community
Sponsored Link

Java Answers Forum
data type problemo

1 reply on 1 page. Most recent reply: Jul 12, 2002 12:20 PM by Kishori Sharan

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 1 reply on 1 page
Mike Mullin

Posts: 1
Nickname: mikemm
Registered: Jul, 2002

data type problemo Posted: Jul 12, 2002 9:58 AM
Reply to this message Reply
Advertisement
hi all,

please could somebody help me out with something really easy peasy!!!

I'm having trouble converting from short to string.

I have a JTextField.setText(shortVar);

and I'm a tad stuck.

cheers

mikem


Kishori Sharan

Posts: 211
Nickname: kishori
Registered: Feb, 2002

Re: data type problemo Posted: Jul 12, 2002 12:20 PM
Reply to this message Reply
Use either of them

1. JTextField.setText(shortVar + "");
2. JTextField.setText(String.valueOf ( shortVar ));

Flat View: This topic has 1 reply on 1 page
Topic: How to Make my program available to all Previous Topic   Next Topic Topic: Need help: ARRAYS CHANGE DATA IN INSTANTIATED OBJECTS

Sponsored Links



Google
  Web Artima.com   

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