X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=src%2Fjavajs%2Fswing%2FJPopupMenu.java;fp=src%2Fjavajs%2Fswing%2FJPopupMenu.java;h=47983c707a6ab80f82e4c6c0bf4b9553e645af8a;hp=47ee8b7e27e6bcd1b0bcc179b84aaee0d99ddcdb;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/src/javajs/swing/JPopupMenu.java b/src/javajs/swing/JPopupMenu.java index 47ee8b7..47983c7 100644 --- a/src/javajs/swing/JPopupMenu.java +++ b/src/javajs/swing/JPopupMenu.java @@ -1,70 +1,70 @@ -package javajs.swing; - -import javajs.awt.Component; - -public class JPopupMenu extends AbstractButton { - - // note that in Java Swing JPopupMenu extends - // JComponent, but here we extend AbstractButton - // so that it shares the SwingComponent interface - - boolean tainted = true; - - static { - /** - * @j2sNative - * - * SwingController.setDraggable(javajs.swing.JPopupMenu); - */ - { - } - } - - public JPopupMenu(String name) { - super("mnu"); - this.name = name; - } - - public void setInvoker(Object applet) { - this.applet = applet; - /** - * @j2sNative - * - * SwingController.setMenu(this); - * - */ - {} - } - - /** - * @param applet - * @param x - * @param y - */ - public void show(Component applet, int x, int y) { - /** - * @j2sNative - * - * if (applet != null) - * this.tainted = true; - * SwingController.showMenu(this, x, y); - * - */ - {} - } - - public void disposeMenu() { - /** - * @j2sNative - * - * SwingController.disposeMenu(this); - */ - {} - } - - @Override - public String toHTML() { - return getMenuHTML(); - } - -} +package javajs.swing; + +import javajs.awt.Component; + +public class JPopupMenu extends AbstractButton { + + // note that in Java Swing JPopupMenu extends + // JComponent, but here we extend AbstractButton + // so that it shares the SwingComponent interface + + boolean tainted = true; + + static { + /** + * @j2sNative + * + * SwingController.setDraggable(javajs.swing.JPopupMenu); + */ + { + } + } + + public JPopupMenu(String name) { + super("mnu"); + this.name = name; + } + + public void setInvoker(Object applet) { + this.applet = applet; + /** + * @j2sNative + * + * SwingController.setMenu(this); + * + */ + {} + } + + /** + * @param applet + * @param x + * @param y + */ + public void show(Component applet, int x, int y) { + /** + * @j2sNative + * + * if (applet != null) + * this.tainted = true; + * SwingController.showMenu(this, x, y); + * + */ + {} + } + + public void disposeMenu() { + /** + * @j2sNative + * + * SwingController.disposeMenu(this); + */ + {} + } + + @Override + public String toHTML() { + return getMenuHTML(); + } + +}