01: package com.xoetrope.service;
02:
03: import java.awt.Frame;
04: import javax.swing.JOptionPane;
05: import net.xoetrope.xui.XProject;
06: import net.xoetrope.xui.XProjectManager;
07:
08: public class LicenceCheck {
09: private static boolean checked = false;
10:
11: protected static XProject currentProject = XProjectManager
12: .getCurrentProject();
13:
14: public static void checkLicence() {
15: if (!checked) {
16: Frame fra = currentProject.getAppFrame();
17: JOptionPane pane = new JOptionPane();
18: String msg = "This application is using an unlicenced version of the XuiPro Routes and Services module!";
19: pane.showMessageDialog(fra, msg, "XuiPro",
20: JOptionPane.OK_OPTION);
21: }
22:
23: checked = true;
24: }
25: }
|