All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pepsoft.util.swing.RemoteJCheckBox Maven / Gradle / Ivy

There is a newer version: 2.15.18
Show newest version
package org.pepsoft.util.swing;

import javax.swing.*;

/**
 * A checkbox which binds to the model of another checkbox so that their states
 * are synced.
 *
 * Created by Pepijn Schmitz on 19-01-17.
 */
public class RemoteJCheckBox extends JCheckBox {
    public RemoteJCheckBox(JCheckBox peer, String text) {
        setModel(peer.getModel());
        setText(text);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy