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.
Netbeans GUI 编辑器提供“新建 -> JPanel 表单...”,但是如何将 JScrollPane 作为顶级组件而不是 JPanel?
当然,JScrollPane 可以直接放在 JPanel 之下,但为什么要使用这种不必要的级别呢?
是的!如果您可以按照以下简单步骤操作:
让我们进入 Tools->Templates->Swing GUI Forms
复制模板“JPanel Form”
向项目中添加一个新的 Swing 组件(哇!现在列表上出现了我们的新模板文件)