ItemStateChanged Interface Implementation
Can I use a nested if/else statement instead of using different Inner classes for an event? What I am trying to do is a program that allows a user to select a shape with a radio button and if they want the shape to be filled or not when it is painted.
public void itemStateChanged(ItemEvent event)
if(event.getSource() == rectangleRadioButton)
if ( event.getSource() == fill )
fillPanel.setCurrentShapeFilled( true );
fillPanel.setCurrentShapeFilled( false );
shape = CustomPanel.RECTANGLE;