Jcombobox Listeners in swing
I want some info regarding the listeners for Jcombobox component in swing..
In my application i have a combo box with 3 values.
EX:Budgetary,Formal,Other..If user selects Budgetary option i need to show some popup message..
I have done with using adding actionlistener to the Combobox..Its working..But iam facing some problem..
After selecting this Budgetary opation user will get some popup message and saves the application.This data is saving in Xml..
After saving i will go to another page and do some work.. after that if i will come back to same page(which i had worked previously) as soon as i select that page ,previous saved data will be displayed...As soon as i select the page that popup message is coming..I don't want that..if user change the combobox value(budgetary) then only i want the popup message..
How to do this ..Please help onthis..here iam attaching my code:::
public void actionPerformed(ActionEvent actionEvent)
JOptionPane.showMessageDialog(null,"Service Information and Core Services sections", "Information",JOptionPane.INFORMATION_MESSAGE);
Please help me out on this problem..
Thanks in advance..