📄 open.java
字号:
// $Id: Open.java,v 1.8 2007/11/05 14:54:57 mike Exp $package org.faceless.pdf2.viewer2.feature;import org.faceless.pdf2.viewer2.*;import javax.swing.*;/** * Create a button and menu item to load a document from the filesystem. * The name of this feature is "Open". * <p><i>This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.</i></p> * @since 2.8 */public class Open extends ViewerWidget{ public Open() { super("Open"); setButton("File", "resources/icons/folder.png", "tt.Open"); setToolBarEnabledAlways(true); setMenu("File\tOpen"); setDocumentRequired(false); } public void action(ViewerEvent event) { event.getViewer().loadPDF(null); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -