how to set tool tip for jlist?

hello sir,

I need one help.

I am getting input from JTextfield1 and JTextfield2 and save it in JList.

I want to save both JTextfield1 and JTextfield2 in same row in JList (ie. save as single JList element).

Is it possible?.

Also, when I move on JList elements, it show the the JTextfield entering name.

is it right for this tooltip,

jList1.setToolTipText(jTextField1.getText());

[427 byte] By [rameshsa] at [2007-11-26 12:53:01]
# 1
Yes you can add both as single component, one ways that i think isadd your data in JTable with 1row 2 col, and the add this JTable in you JList by methodlist.add(Component );
iftikhar-4w-programmer-J2EEa at 2007-7-7 16:42:56 > top of Java-index,Desktop,Core GUI APIs...