Ajout commentaires PDF, Page et Fenêtre

Modification recharger/charger => charger uniquement
Ajout affichage Vertical/Horizontal
Methodes de Tests pour Page et Fenêtre
This commit is contained in:
LucasV-IUT
2021-12-07 22:43:06 +01:00
parent 0668201bb8
commit 4439c4e82b
8 changed files with 187 additions and 223 deletions
+3 -22
View File
@@ -1,33 +1,14 @@
package lecteur_pdf.document;
import javax.swing.*;
import java.awt.*;
import java.io.File;
class PDFTest {
/**
* TODO comment main
* Lance les methodes de tests
*
* @param args
* @param args non utilisé
*/
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocationRelativeTo(null);
frame.setSize(300,300);
frame.setBackground(Color.gray);
frame.setVisible(true);
//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);
frame.validate();
// TODO
}
}