// trying out a few candidates this one seems to give the right result
int width = fm.charWidth(' ') + additionalWidth;
int height = fm.getHeight() + additionalHeight;
harness.check(ui.getDisplaySize(), new Dimension(width, height));
cb.addItem("ABC");
width = fm.stringWidth("ABC") + additionalWidth;
harness.check(ui.getDisplaySize(), new Dimension(width, height));
cb.addItem("A longer item");
width = fm.stringWidth("A longer item") + additionalWidth;