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.
我已经创建了一个 JFrame 并向其中添加了一个 JPanel。我需要向 JPanel 添加一个滚动条。我该怎么做?任何帮助将不胜感激。
您可以使用JScrollPane来实现此目的。