Mega Code Archive

 
Categories / Java Tutorial / Swing
 

Create a scrollable list

import javax.swing.JList; import javax.swing.JScrollPane; public class Main {   public static void main(String[] argv) throws Exception {     JList list = new JList();     JScrollPane scrollableList = new JScrollPane(list);   } }