javajs.swing.JMenu Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmol Show documentation
Show all versions of jmol Show documentation
Jmol: an open-source Java viewer for chemical structures in 3D
package javajs.swing;
import javajs.awt.Component;
public class JMenu extends JMenuItem {
public JMenu() {
super("mnu",TYPE_MENU);
}
public int getItemCount() {
return getComponentCount();
}
public Component getItem(int i) {
return getComponent(i);
}
@Override
public Object getPopupMenu() {
return this;
}
@Override
public String toHTML() {
return getMenuHTML();
}
}