No, you have to first call currently selected item
String selectedOption = (String) jComboBoxMonth.getSelectedItem()
and then you can compare it as you did it if (selectedOption.equals("Month")
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902