1、 JLIST有个方法:void setSelectionMode(int selectionMode) 
          Determines whether single-item or multiple-item selections are allowed. 
The following selectionMode values are allowed: 
SINGLE_SELECTION Only one list index can be selected at a time. In this mode the setSelectionInterval and addSelectionInterval methods are equivalent, and they only the first index argument is used. 
SINGLE_INTERVAL_SELECTION One contiguous index interval can be selected at a time. In this mode setSelectionInterval and addSelectionInterval are equivalent. 
MULTIPLE_INTERVAL_SELECTION In this mode, there's no restriction on what can be selected. 
多查查API文档。装个JBUILDER就有。
2、只要在FRAME的构造器里面实现下面代码:
addWindowListener(new WindowAdapter(){
           public void windowClosing(WindowEvent we){
       //more work to do
         System.exit(0);
           }
     });
就可以实现关闭。
3、查询来说,很简单。
JLIST有个方法:
setSelectedValue
public void setSelectedValue(Object anObject,
                             boolean shouldScroll)
Selects the specified object from the list.
Parameters:
anObject - the Object to select
shouldScroll - true if the list should scroll to display the selected object

解决方案 »

  1.   

    对于第一个问题,可能我的英文比较差
    我的代码如下:
    lUser = new JList(Users);
    lUser.setSelectionModel(SINGLE_SELECTION);
    编译通不过。。第二个问题,可能我表达的有些模糊,在JFrame框架里我能够实现退出功能,同样的代码在JApplet框架下就实现不了(能通过编译)第三个问题。。我只能说大哥好人做到底,J2SE的DOCUMENTS我早已经查了,我的本意用以下伪代码列出:
      

  2.   

    上面第一个问题那个方法我多打了一个l,应该是setSelectionMode,更正一下
      

  3.   

    tmp = tfFind.getText();
    for (i = 原始位置;i <= 总的ITEMS;循环检查JLIST里的各个ITEMS)
    {
        lUser.setSelectedIndex(i);
        if (tmp == lUser.getSelectedValue())
             break;
    }