Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting long(datatype) values to a listbox

Status
Not open for further replies.

mgl70

Programmer
Joined
Sep 10, 2003
Messages
105
Location
US
hi
I have a question regarding long data type. I need to set the values for long data type to a Jlistbox.I know how to set string array and vector to list box.
I have values like
long a1 = 1000*15,1000*10,1000*5;
I need to set these values in the list box.
For this I took a long object tried to send to a list box.
It is not doing that. I donot know this.

How to send this long values to a listbox.
User can select a value by using the listbox.

what I have to do this?

help me.
thanks,

 
Hi,
You have to take each long object and construct a vector object out of this and pass this vector object to the jlist

Thanks,
Harshini
 
Thank you Harshini..I got it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top