mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-12-05 18:30:49 +00:00
23 lines
568 B
Java
23 lines
568 B
Java
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();});
|
|
|
|
}
|
|
}
|