2 * Copyright (C) 2010, mshio <mshio@users.sourceforge.jp>
4 * This program is free software: you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Require JDK 1.5 (or later)
19 package jp.sourceforge.sawarabifonts.chartool;
21 import javax.swing.JFrame;
22 import javax.swing.JOptionPane;
24 import org.mozilla.javascript.ScriptableObject;
26 public class JsScriptableObject extends ScriptableObject {
27 private static final long serialVersionUID = 2857654503604299849L;
29 private JFrame frame = null;
32 public String getClassName() {
33 return "JsScriptableObject";
36 public void setFrame(JFrame frame) {
40 public void alert(String message) {
42 JOptionPane.showMessageDialog(frame, message);