How to setSelected by name some JMenuItem in a JPopUpMenu?
问题 I have a JPopUpMenu with several JCheckBoxMenuItem's on it. I also have a properties files (config.properties) where I put a parameter which save every JCheckBoxMenuItem the user has checked on this JPopUpMenu , when i close the application. So this file is like : config.properties : listeFiltres =Autres,Afrique du sud,Algérie What I would like to do is , on the start of my application, to setSelected every item that is saved in my properties parameter. For exemple, if "Afrique,Algérie