JList 的 ListSelectionListener 在选定时为什么要发送了两次消息??
Client.addListSelectionListener(new ListSelectionListener()
{
public void valueChanged( ListSelectionEvent e )
{
Out_Text.append("\n"+Client.getSelectedValue().toString());
}
});
我每次在选定一个列表项时都要被执行两次,这是为什么,怎么修改.