intégration des différent pop-ups dans le main

This commit is contained in:
leofranch
2021-12-07 14:19:05 +01:00
parent 1d9251c7bc
commit ad980a341e
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();
}