Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 JList 添加到 JScrollPane ?
把你JList的JScrollPane
JList
JScrollPane
JScrollPane scrollPane = new JScrollPane(); JList list = new JList(); scrollPane.setViewportView(list);