TBPanel () { final TBPanel testTB = new TBPanel("test"); testTB.addSpacing(true); testTB.addButton().setText("test1").setAction(createPrintTextCallback("pressed test1 button"), false); testTB.addButton().setText("test2").setAction(createPrintTextCallback("pressed test2 button"), false); testTB.addSpacing(false); testTB.addButton().setIcon(ourTestIcon).setAction(createPrintTextCallback("pressed image button"), false); return testTB; }