Perhaps you have a design issue to work out.
Just how do you want to 'display' a vector containing more than one value?
List box display lines are basically just Strings. So, if you want to
display a group of values (contents of a vector) on each line, you need to
do some sort of massaging of the vector values to squeeze them into a
single display value, e.g., concatenating them together with some sort of
separator, like a comma, in between the values.
-- Curt
At 07:02 PM 6/28/99 -0800, Steven Cheung wrote:
>
>Thanks Curt.
>
>Is it possible for you that to send me some sample codes in doing this?
>
>I have tried to do what you suggested, but the vectors that I wanted to
display is not showing up in the list.
>
>Steven
>
>Curt Springer <[EMAIL PROTECTED]> wrote:
>>First off, I will say that I know jack about ND applets at any level of
>>detail.
>>
>>But, from the javadoc, it appears that CSpJavaList is another flavor of
>>CSpSelectableGroup, which is what all of us html folks work with in using
>>listboxes and comboboxes.
>>
>>Basically, I think you want to instantiate your CSpJavaList, then call
>>createNewSelectable for each entry you want to add, with the String
>>argument being the value you want to display to the user, and the CSpValue
>>being the 'real' value, in this case each vector. If the vector is not a
>>CSpVector, build one around it using the CSpVector constructor that takes a
>>Vector as its argument.
>>
>>-- Curt Springer, Team ND
>>
>>
>>At 05:05 PM 6/28/99 -0800, Steven Cheung wrote:
>>>
>>>Hi,
>>>
>>>Does anyone know how to display data in a CSpJavaList?
>>>I have a list of vectors that are generated
>>> from a search method, and I want to display
>>> the list of vectors in a JavaList inside a
>>> java Applet. Any help would be appreciated!
>>>
>>>From Steven
>>>_________________________________________________________________________
>>>
>>>For help in using, subscribing, and unsubscribing to the discussion
>>>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>>>
>>>For dire need help, email: [EMAIL PROTECTED]
>>>
>
>_________________________________________________________________________
>
>For help in using, subscribing, and unsubscribing to the discussion
>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
>For dire need help, email: [EMAIL PROTECTED]
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]