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,22 @@
|
||||
package lecteur_pdf_swing.menuBar.menuItems;
|
||||
|
||||
import lecteur_pdf_swing.IhmPdf;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
|
||||
public class ZoomMoins extends JMenuItem {
|
||||
|
||||
IhmPdf parent;
|
||||
|
||||
public ZoomMoins(IhmPdf parent) {
|
||||
super("Zoom 50%");
|
||||
this.parent = parent;
|
||||
|
||||
KeyStroke raccourciZoomMoins = KeyStroke.getKeyStroke(KeyEvent.VK_K,
|
||||
KeyEvent.CTRL_DOWN_MASK);
|
||||
setAccelerator(raccourciZoomMoins);
|
||||
addActionListener(e -> {parent.zoomMoins();});
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user