解决方案1: 你的逻辑错误,应该是在ScrollPane中添加JPanel。 ScrollPane sp = new ScrollPane (new JPanel()); this.add (sp);. 解决方案2:
確定! 回上一頁