Buggy code:
class PanZoomPanel extends JPanel implements ReplyAction { private static final long serialVersionUID = 1L ; private static final int PAN_MAX = 40 ; private static final int PAN_MIN = - 40 ; private static final int PAN_TICK_SPACING = 5 ; private static final int PAN_FINE_MAX_ADD = 20 ; private static final int PAN_FINE_MIN_ADD = - 20 ; private static final int PAN_FINE_TICK_SPACING = 1 ; private static final int ZOOM_MAX = 8 ; private static final int ZOOM_MIN = 1 ; private static ImageIcon LEFT_ARROW = new ImageIcon ( ImageUtils . getImage ( "images//buttons//move_west.png" ) . getScaledInstance ( 20 , 20 , Image . SCALE_SMOOTH ) ) ; private static ImageIcon RIGHT_ARROW = new ImageIcon ( ImageUtils . getImage ( "images//buttons//move_east.png" ) . getScaledInstance ( 20 , 20 , Image . SCALE_SMOOTH ) ) ; private ThermalCamControlGui gui ; private int zoom = 0 ; private int maxZoom = 0 ; private int pan = 0 ; private int tilt = 0 ; private JLabel panZoomLabel = null ; private JRadioButton unzoomRadioButton = null ; private JRadioButton zoom2xRadioButton = null ; private JRadioButton zoom4xRadioButton = null ; private JRadioButton zoom8xRadioButton = null ; private ButtonGroup zoomButtonGroup = null ; private JTextField eZoomText = null ; private JLabel eZoomValueLabel = null ; private JButton incZoomButton = null ; private JButton decZoomButton = null ; private JPanel eZoomSliderPanel = null ; private JLabel eightXLabel = null ; private JLabel eZoomLabel = null ; private JLabel oneXLabel = null ; private JSlider eZoomSlider = null ; private JPanel panSliderPanel = null ; private JSlider panSlider = null ; private JSlider tiltSlider = null ; private JPanel panPanel = null ; private JLabel panLabel = null ; private JButton panCenterButton = null ; private JCheckBox panFineCheckBox = null ; private JTextField panText = null ; private JTextField tiltText = null ; private JLabel tiltLabel = null ; private JLabel panMaxLabel = null ; private JLabel panMinLabel = null ; private JLabel tiltMaxLabel = null ; private JLabel tiltMinLabel = null ; protected PanZoomPanel ( ThermalCamControlGui gui ) { } private void initialize ( ) { } private JPanel getPanSliderPanel ( ) { } private JPanel getEZoomSliderPanel ( ) { } private JPanel getPanPanel ( ) { } protected int getPan ( ) { } protected void setPan ( int pan ) { } protected int getTilt ( ) { } protected void setTilt ( int tilt ) { } protected int getZoom ( ) { } protected void setZoom ( int zoom ) { } protected int getMaxZoom ( ) { } protected void setMaxZoom ( int zoom ) { } private void setZoomRadioButtons ( int value ) { <START_BUG> if ( value == 0 ) { <END_BUG> unzoomRadioButton . setSelected ( true ) ; } else if ( value == 2 ) { zoom2xRadioButton . setSelected ( true ) ; } else if ( value == 4 ) { zoom4xRadioButton . setSelected ( true ) ; } else if ( value == 8 ) { zoom8xRadioButton . setSelected ( true ) ; } else { unzoomRadioButton . setSelected ( false ) ; zoom2xRadioButton . setSelected ( false ) ; zoom4xRadioButton . setSelected ( false ) ; zoom8xRadioButton . setSelected ( false ) ; } } private void getZoomMessage ( ) { } private void setZoomMessage ( int zoom ) { } protected void getZoomMaxMessage ( ) { } protected void getPanZoomMessages ( ) { } private void getPanTiltMessage ( ) { } private void setPanTiltMessage ( int pan , int tilt ) { } @ Override public void executeOnReply ( ThermalCamControl sent , ThermalCamControl rec ) { } @ Override public void executeIfNoReply ( ThermalCamControl sent ) { } }

Fix:
if ( value == 1 ) {