Java JCheckBox convertToYesNo(JCheckBox checkBox)

Here you can find the source of convertToYesNo(JCheckBox checkBox)

Description

convert To Yes No

License

BSD License

Declaration

public static String convertToYesNo(JCheckBox checkBox) 

Method Source Code

//package com.java2s;
/*L//from  w w  w.  jav a2 s  .  c o m
 *  Copyright Ekagra Software Technologies Ltd.
 *  Copyright SAIC, SAIC-Frederick
 *
 *  Distributed under the OSI-approved BSD 3-Clause License.
 *  See http://ncip.github.com/cacore-sdk/LICENSE.txt for details.
 */

import javax.swing.JCheckBox;

public class Main {
    public static String convertToYesNo(JCheckBox checkBox) {
        if (checkBox.isSelected())
            return "Yes";

        return "No";
    }
}

Related

  1. addCheckBox(Container container, String label, String placement, boolean debug)
  2. createCheckBox(final String title, final Preferences node, final String pref_name, final boolean default_val)
  3. createCheckBox(String name, String command, boolean selected)
  4. createCheckBox(String s, boolean b)
  5. createJCheckBox(Rectangle bounds)