mirror of
https://github.com/LucasVbr/LecteurPdfDoubleAffichage.git
synced 2026-05-16 17:11:50 +00:00
21 lines
549 B
Java
21 lines
549 B
Java
package lecteur_pdf.menuBar.menuItems;
|
|
|
|
import lecteur_pdf.IhmPdf;
|
|
|
|
import javax.swing.*;
|
|
import java.awt.event.KeyEvent;
|
|
|
|
public class ZoomPlus extends JMenuItem {
|
|
|
|
IhmPdf parent;
|
|
|
|
public ZoomPlus(IhmPdf parent) {
|
|
super("Zoom 150%");
|
|
this.parent = parent;
|
|
KeyStroke raccourciZoomPlus = KeyStroke.getKeyStroke(KeyEvent.VK_M,
|
|
KeyEvent.CTRL_DOWN_MASK);
|
|
setAccelerator(raccourciZoomPlus);
|
|
addActionListener(e -> {parent.zoomPlus();});
|
|
|
|
}
|
|
} |