Merge remote-tracking branch 'origin/main'

# Conflicts:
#	src/lecteur_pdf/menu/Menu.java
This commit is contained in:
NonoL3Robot
2021-12-07 18:46:56 +01:00
5 changed files with 83 additions and 25 deletions
+5 -5
View File
@@ -21,12 +21,12 @@ class PDFTest {
frame.setBackground(Color.gray);
frame.setVisible(true);
PDF doc = new PDF(new File("C:/Users/public/test.pdf"));
//PDF doc = new PDF(new File("C:/Users/public/test.pdf"));
JScrollPane scrollPane = new JScrollPane(doc);
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
frame.add(scrollPane);
//JScrollPane scrollPane = new JScrollPane(doc);
//scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
//scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
//frame.add(scrollPane);
frame.validate();
}