org.jmol.console.JmolToggleButton 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 org.jmol.console;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JToggleButton;
import org.jmol.api.JmolAbstractButton;
public class JmolToggleButton extends JToggleButton implements JmolAbstractButton {
public JmolToggleButton(ImageIcon ii) {
super(ii);
}
@Override
public void addConsoleListener(Object console) {
addActionListener((ActionListener) console);
}
@Override
public String getKey() {
return null;
}
}