JRadioButtonMenuItem item = new JRadioButtonMenuItem(level.toString());
// select current log level
if (level.toString().equals(curLogLevel)) {
item.setSelected(true);
}
item.addActionListener(new SetLogConfigHandler());
levelGroup.add(item);
logConfig.add(item);
}
toolsMenu.add(logConfig);