addCPItem.addActionListener(new AddCPHandler(this));
this.cpMenu.add(addCPItem);
JMenu removeMenu = new JMenu("Remove code page");
for (int i = 0; i < this.codePages.size(); i++) {
JMenuItem rmItem = new JMenuItem((String) this.codePages.get(i));
rmItem.addActionListener(new RemoveCodePageHandler(this));
removeMenu.add(rmItem);
}
this.cpMenu.add(removeMenu);
JMenuItem restoreDefaultsItem = new JMenuItem("Restore defaults");
restoreDefaultsItem.addActionListener(new RestoreCPDefaultsHandler(this));