How do I setText() with a long???
ceyesuma -4 Posting Pro
Recommended Answers
Jump to PostOnly if it is a Long, and not a long. If it is a long, then, the proper way is
jvar.setText(String.valueOf(longvar));
The "quick and dirty" or improper, but still functional way is
jvar.setText("" + longvar);
All 4 Replies
nschessnerd 0 Posting Whiz in Training
masijade 1,351 Industrious Poster Team Colleague Featured Poster
schoolsoluction -1 Light Poster
ceyesuma -4 Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.