All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpedal.examples.viewer.commands.Tip Maven / Gradle / Ivy

There is a newer version: 7.15.25
Show newest version
/*
 * ===========================================
 * Java Pdf Extraction Decoding Access Library
 * ===========================================
 *
 * Project Info:  http://www.idrsolutions.com
 * Help section for developers at http://www.idrsolutions.com/support/
 *
 * (C) Copyright 1997-2017 IDRsolutions and Contributors.
 *
 * This file is part of JPedal/JPDF2HTML5
 *
 @LICENSE@
 *
 * ---------------
 * Tip.java
 * ---------------
 */
package org.jpedal.examples.viewer.commands;

import java.awt.Container;

import org.jpedal.examples.viewer.gui.popups.TipOfTheDay;
import org.jpedal.examples.viewer.utils.PropertiesFile;
import org.jpedal.gui.GUIFactory;

/**
 * Code to handle the Tip of the day feature we display in theViewer
 */
public class Tip {

    public static void execute(final Object[] args, final GUIFactory currentGUI, final PropertiesFile properties) {
        if (args == null) {
            final TipOfTheDay tipOfTheDay = new TipOfTheDay((Container) currentGUI.getFrame(), "/org/jpedal/examples/viewer/res/tips", properties);
            tipOfTheDay.setVisible(true);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy