splashscreen.java

来自「Java生成PDF Java生成PDF Java生成PDF」· Java 代码 · 共 38 行

JAVA
38
字号
// $Id: SplashScreen.java,v 1.1 2007/11/15 00:20:35 mike Exp $package org.faceless.pdf2.viewer2.feature;import org.faceless.pdf2.viewer2.*;import org.faceless.pdf2.*;import java.awt.*;import java.awt.event.*;import javax.swing.*;import javax.swing.event.*;import javax.swing.border.*;import java.util.*;/** * Create a splash screen which displays an "About" dialog when the PDFViewer is first displayed. * The name of this feature is "SplashScreen" * <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.9 */public class SplashScreen extends About{    public SplashScreen() {        super("SplashScreen");    }    public void initialize(final PDFViewer viewer) {        super.initialize(viewer);        viewer.addHierarchyListener(new HierarchyListener() {            public void hierarchyChanged(HierarchyEvent event) {                if ((event.getChangeFlags()&event.SHOWING_CHANGED)!=0 && viewer.isShowing()) {                    viewer.removeHierarchyListener(this);                    showAboutDialog(viewer, false, 3500);                }            }        });    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?