mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-12-05 18:30:49 +00:00
Init V2
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package lecteur_pdf_swing.menuBar.menuItems;
|
||||
|
||||
import lecteur_pdf_swing.IhmPdf;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
public class PleinEcran extends JMenuItem {
|
||||
|
||||
IhmPdf parent;
|
||||
|
||||
public PleinEcran(IhmPdf parent) {
|
||||
super("Mode Plein Ecran");
|
||||
this.parent = parent;
|
||||
KeyStroke raccourciPleinEcran = KeyStroke.getKeyStroke(KeyEvent.VK_F11,
|
||||
0);
|
||||
setAccelerator(raccourciPleinEcran);
|
||||
addActionListener(e -> {parent.pleinEcran();});
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user