首頁
返回
繼續
最後一頁
摘要
圖形
JList
JList物件用來建立List
處理物件是ListSelectionListener
處理方法是valueChanged(ListSelectionEvent e)
getSelectedIndex() 用來看看選定哪一個
setVisibleRowCount(int) 設定下拉長度
setSelectionMode(ListSelectionModel.SINGLE_SELECTION) 設定單選