+ 1

Content of "JScrollPane"

I want to display an JPanel in an JScrollPane. Usually the JScrollPane-constructor solves this problem: JScrollPane v1 = new JScrollPane(v0); It works. But: After the user have changed some settings, another JPanel should be displayed. I'm searching something like JFrame.setContentPane(JPanel). Does somebody know, wich method I sould use? Hope I will get some answers, S.A.

6th Jan 2021, 5:28 PM
Sebastian Ahlborn
Sebastian Ahlborn - avatar
1 Respuesta