this.langButtons.add(item);
this.langMenu.add(item);
}
this.langMenu.addSeparator();
JMenuItem addLangItem = new JMenuItem("Add language");
addLangItem.addActionListener(new AddLanguageHandler(this));
this.langMenu.add(addLangItem);
JMenu removeMenu = new JMenu("Remove language");
for (int i = 0; i < this.languages.size(); i++) {
JMenuItem rmItem = new JMenuItem((String) this.languages.get(i));
rmItem.addActionListener(new RemoveLanguageHandler(this));