javajs.swing.ButtonGroup 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.api.SC;
import javajs.awt.Component;
public class ButtonGroup {
private String id;
public ButtonGroup() {
id = Component.newID("bg");
}
public void add(SC item) {
((AbstractButton) item).htmlName = this.id;
}
}