Edit PDFTest.java (remove getContentPane)

This commit is contained in:
LucasV-IUT
2021-11-28 17:37:18 +01:00
parent b3714cfcdf
commit 9f23e9b1ec
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class PDFTest {
JScrollPane scrollPane = new JScrollPane(doc);
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
frame.getContentPane().add(scrollPane);
frame.add(scrollPane);
frame.validate();
}