001package jmri.jmrit.symbolicprog; 002 003import javax.swing.JComboBox; 004import javax.swing.JRadioButton; 005 006/* Represents a JComboBox as a JPanel containing just the "off" button 007 * 008 * @author Bob Jacobsen Copyright (C) 2001, 2002 009 */ 010public class ComboOffRadioButton extends ComboRadioButtons { 011 012 ComboOffRadioButton(JComboBox<String> box, EnumVariableValue var) { 013 super(box, var); 014 } 015 016 /** 017 * Make only the "on" button visible 018 */ 019 @Override 020 void addToPanel(JRadioButton b, int i) { 021 if (i == 0) { 022 add(b); 023 } 024 } 025 026}