TBPanel () { final int configPopoverWidth = 143; final TBPanel testTB = new TBPanel("test"); testTB.addButton().setText("test1").setAction(createPrintTextCallback("pressed test1 button"), false); testTB.addButton().setText("test2").setAction(createPrintTextCallback("pressed test2 button"), false); testTB.addButton().setText("test3 with suff").setAction(createPrintTextCallback("pressed test2 button"), false); testTB.addButton().setIcon(ourTestIcon).setAction(createPrintTextCallback("pressed image button"), false); testTB.addButton().setIcon(ourTestIcon).setText("IDEA very-very-very-very long suffix").setWidth(configPopoverWidth).setAction(createPrintTextCallback("pressed image-text button"), false); testTB.addButton().setIcon(ourTestIcon).setText("IDEA very long suffix").setWidth(configPopoverWidth + 69).setAction(createPrintTextCallback("pressed image-text 2 button"), false).setToggle(); return testTB; }